Skip to content

Commit dc97794

Browse files
committed
[semantic tokens] improve code completions for editor.semanticTokenColorCustomizations. Fixes microsoft#96351
1 parent 763de79 commit dc97794

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/vs/base/common/jsonSchema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export interface IJSONSchema {
6363
markdownEnumDescriptions?: string[];
6464
markdownDescription?: string;
6565
doNotSuggest?: boolean;
66+
suggestSortText?: string;
6667
allowComments?: boolean;
6768
allowTrailingCommas?: boolean;
6869
}

src/vs/workbench/services/themes/common/themeConfiguration.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,13 @@ const semanticTokenColorSchema: IJSONSchema = {
150150
properties: {
151151
enabled: {
152152
type: 'boolean',
153-
description: nls.localize('editorColors.semanticHighlighting.enabled', 'Whether semantic highlighting is enabled or disabled for this theme')
153+
description: nls.localize('editorColors.semanticHighlighting.enabled', 'Whether semantic highlighting is enabled or disabled for this theme'),
154+
suggestSortText: '0_enabled'
154155
},
155156
rules: {
156157
$ref: tokenStylingSchemaId,
157-
description: nls.localize('editorColors.semanticHighlighting.rules', 'Semantic token styling rules for this theme.')
158+
description: nls.localize('editorColors.semanticHighlighting.rules', 'Semantic token styling rules for this theme.'),
159+
suggestSortText: '0_rules'
158160
}
159161
},
160162
additionalProperties: false

0 commit comments

Comments
 (0)