[semantic tokens] improve code completions for `editor.semanticTokenColorCustomizations`. Fixes #96351

pull/97081/head
Martin Aeschlimann 2020-05-06 15:40:10 +02:00
parent 763de7962f
commit dc97794113
2 changed files with 5 additions and 2 deletions

View File

@ -63,6 +63,7 @@ export interface IJSONSchema {
markdownEnumDescriptions?: string[];
markdownDescription?: string;
doNotSuggest?: boolean;
suggestSortText?: string;
allowComments?: boolean;
allowTrailingCommas?: boolean;
}

View File

@ -150,11 +150,13 @@ const semanticTokenColorSchema: IJSONSchema = {
properties: {
enabled: {
type: 'boolean',
description: nls.localize('editorColors.semanticHighlighting.enabled', 'Whether semantic highlighting is enabled or disabled for this theme')
description: nls.localize('editorColors.semanticHighlighting.enabled', 'Whether semantic highlighting is enabled or disabled for this theme'),
suggestSortText: '0_enabled'
},
rules: {
$ref: tokenStylingSchemaId,
description: nls.localize('editorColors.semanticHighlighting.rules', 'Semantic token styling rules for this theme.')
description: nls.localize('editorColors.semanticHighlighting.rules', 'Semantic token styling rules for this theme.'),
suggestSortText: '0_rules'
}
},
additionalProperties: false