From dc977941131ce6f2e3dac466bda143caee23af4b Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Wed, 6 May 2020 15:40:10 +0200 Subject: [PATCH] [semantic tokens] improve code completions for `editor.semanticTokenColorCustomizations`. Fixes #96351 --- src/vs/base/common/jsonSchema.ts | 1 + .../workbench/services/themes/common/themeConfiguration.ts | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/vs/base/common/jsonSchema.ts b/src/vs/base/common/jsonSchema.ts index 1c6fea1f9c7..da614983689 100644 --- a/src/vs/base/common/jsonSchema.ts +++ b/src/vs/base/common/jsonSchema.ts @@ -63,6 +63,7 @@ export interface IJSONSchema { markdownEnumDescriptions?: string[]; markdownDescription?: string; doNotSuggest?: boolean; + suggestSortText?: string; allowComments?: boolean; allowTrailingCommas?: boolean; } diff --git a/src/vs/workbench/services/themes/common/themeConfiguration.ts b/src/vs/workbench/services/themes/common/themeConfiguration.ts index 5e5665b01e7..404c304682c 100644 --- a/src/vs/workbench/services/themes/common/themeConfiguration.ts +++ b/src/vs/workbench/services/themes/common/themeConfiguration.ts @@ -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