From 0eb2ef0e1a24ce423864b8da581d43545a21d6ce Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Thu, 5 Oct 2017 15:39:13 +0200 Subject: [PATCH] Warn on mispelled color names --- .../services/themes/electron-browser/workbenchThemeService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vs/workbench/services/themes/electron-browser/workbenchThemeService.ts b/src/vs/workbench/services/themes/electron-browser/workbenchThemeService.ts index b11493aa447..8c1d7cf4804 100644 --- a/src/vs/workbench/services/themes/electron-browser/workbenchThemeService.ts +++ b/src/vs/workbench/services/themes/electron-browser/workbenchThemeService.ts @@ -787,6 +787,7 @@ const colorCustomizationsSchema: IJSONSchema = { type: ['object'], description: nls.localize('workbenchColors', "Overrides colors from the currently selected color theme."), properties: colorThemeSchema.colorsSchema.properties, + additionalProperties: false, default: {}, defaultSnippets: [{ body: { @@ -831,6 +832,7 @@ configurationRegistry.registerConfiguration({ [CUSTOM_EDITOR_COLORS_SETTING]: { description: nls.localize('editorColors', "Overrides editor colors and font style from the currently selected color theme."), default: {}, + additionalProperties: false, properties: { comments: tokenGroupSettings(nls.localize('editorColors.comments', "Sets the colors and styles for comments")), strings: tokenGroupSettings(nls.localize('editorColors.strings', "Sets the colors and styles for strings literals.")), -- GitLab