From 239c2d1d60ea9dcd3eb7e3db1954c1f938f14bfb Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Mon, 5 Feb 2018 14:45:36 +0100 Subject: [PATCH] editor.tokenColorCustomizations not applying font style. Fixes #42939 --- .../workbench/services/themes/common/colorThemeSchema.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/services/themes/common/colorThemeSchema.ts b/src/vs/workbench/services/themes/common/colorThemeSchema.ts index bfaae07ad34..33ac29c6ff4 100644 --- a/src/vs/workbench/services/themes/common/colorThemeSchema.ts +++ b/src/vs/workbench/services/themes/common/colorThemeSchema.ts @@ -130,12 +130,13 @@ export const tokenColorizationSettingSchema: IJSONSchema = { }, fontStyle: { type: 'string', - description: nls.localize('schema.token.fontStyle', 'Font style of the rule: One or a combination of \'italic\', \'bold\' and \'underline\''), + description: nls.localize('schema.token.fontStyle', 'Font style of the rule: \'italic\', \'bold\' or \'underline\' or a combination. The empty string unsets inherited settings.'), pattern: '^(\\s*\\b(italic|bold|underline))*\\s*$', - patternErrorMessage: nls.localize('schema.fontStyle.error', 'Font style must be a combination of \'italic\', \'bold\' and \'underline\''), + patternErrorMessage: nls.localize('schema.fontStyle.error', 'Font style must be \'italic\', \'bold\' or \'underline\' or a combination or the empty string.'), defaultSnippets: [{ body: 'italic' }, { body: 'bold' }, { body: 'underline' }, { body: 'italic bold' }, { body: 'italic underline' }, { body: 'bold underline' }, { body: 'italic bold underline' }] } }, + additionalProperties: false, defaultSnippets: [{ body: { foreground: '${1:#FF0000}', fontStyle: '${2:bold}' } }] }; @@ -176,7 +177,8 @@ export function tokenColorsSchema(description: string): IJSONSchema { ] }, settings: tokenColorizationSettingSchema - } + }, + additionalProperties: false } }; } -- GitLab