Skip to content

Commit ddff80b

Browse files
committed
product icon file enums. for microsoft#94209
1 parent b08e561 commit ddff80b

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,18 @@ const schema: IJSONSchema = {
5656
weight: {
5757
type: 'string',
5858
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.'),
59-
pattern: fontWeightRegex
60-
59+
anyOf: [
60+
{ enum: ['normal', 'bold', 'lighter', 'bolder'] },
61+
{ type: 'string', pattern: fontWeightRegex }
62+
]
6163
},
6264
style: {
6365
type: 'string',
6466
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.'),
65-
pattern: fontStyleRegex
67+
anyOf: [
68+
{ enum: ['normal', 'italic', 'oblique'] },
69+
{ type: 'string', pattern: fontStyleRegex }
70+
]
6671
}
6772
},
6873
required: [

0 commit comments

Comments
 (0)