Skip to content

Commit 239c2d1

Browse files
committed
editor.tokenColorCustomizations not applying font style. Fixes microsoft#42939
1 parent 8f24fa4 commit 239c2d1

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,13 @@ export const tokenColorizationSettingSchema: IJSONSchema = {
130130
},
131131
fontStyle: {
132132
type: 'string',
133-
description: nls.localize('schema.token.fontStyle', 'Font style of the rule: One or a combination of \'italic\', \'bold\' and \'underline\''),
133+
description: nls.localize('schema.token.fontStyle', 'Font style of the rule: \'italic\', \'bold\' or \'underline\' or a combination. The empty string unsets inherited settings.'),
134134
pattern: '^(\\s*\\b(italic|bold|underline))*\\s*$',
135-
patternErrorMessage: nls.localize('schema.fontStyle.error', 'Font style must be a combination of \'italic\', \'bold\' and \'underline\''),
135+
patternErrorMessage: nls.localize('schema.fontStyle.error', 'Font style must be \'italic\', \'bold\' or \'underline\' or a combination or the empty string.'),
136136
defaultSnippets: [{ body: 'italic' }, { body: 'bold' }, { body: 'underline' }, { body: 'italic bold' }, { body: 'italic underline' }, { body: 'bold underline' }, { body: 'italic bold underline' }]
137137
}
138138
},
139+
additionalProperties: false,
139140
defaultSnippets: [{ body: { foreground: '${1:#FF0000}', fontStyle: '${2:bold}' } }]
140141
};
141142

@@ -176,7 +177,8 @@ export function tokenColorsSchema(description: string): IJSONSchema {
176177
]
177178
},
178179
settings: tokenColorizationSettingSchema
179-
}
180+
},
181+
additionalProperties: false
180182
}
181183
};
182184
}

0 commit comments

Comments
 (0)