From ddff80b3e6dee4c0aa85261bd1e20540091d1e93 Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Fri, 1 May 2020 14:33:38 +0200 Subject: [PATCH] product icon file enums. for #94209 --- .../services/themes/common/productIconThemeSchema.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/services/themes/common/productIconThemeSchema.ts b/src/vs/workbench/services/themes/common/productIconThemeSchema.ts index 307de29077b..5b77311e497 100644 --- a/src/vs/workbench/services/themes/common/productIconThemeSchema.ts +++ b/src/vs/workbench/services/themes/common/productIconThemeSchema.ts @@ -56,13 +56,18 @@ const schema: IJSONSchema = { weight: { type: 'string', description: nls.localize('schema.font-weight', 'The weight of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight for valid values.'), - pattern: fontWeightRegex - + anyOf: [ + { enum: ['normal', 'bold', 'lighter', 'bolder'] }, + { type: 'string', pattern: fontWeightRegex } + ] }, style: { type: 'string', description: nls.localize('schema.font-style', 'The style of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-style for valid values.'), - pattern: fontStyleRegex + anyOf: [ + { enum: ['normal', 'italic', 'oblique'] }, + { type: 'string', pattern: fontStyleRegex } + ] } }, required: [