You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: nls.localize('inlineSuggest.edits.experimental.useMixedLinesDiff',"Controls whether to enable experimental edits in inline suggestions."),
exportconstfontCharacterErrorMessage=localize('schema.fontCharacter.formatError','The fontCharacter must be a single letter or a backslash followed by unicode code points in hexadecimal.');
159
+
exportconstfontIdErrorMessage=localize('schema.fontId.formatError','The font ID must only contain letters, numbers, underscores and dashes.');
160
+
148
161
classIconRegistryimplementsIIconRegistry{
149
162
150
163
privatereadonly_onDidChange=newEmitter<void>();
@@ -156,8 +169,8 @@ class IconRegistry implements IIconRegistry {
156
169
icons: {
157
170
type: 'object',
158
171
properties: {
159
-
fontId: {type: 'string',description: localize('iconDefinition.fontId','The id of the font to use. If not set, the font that is defined first is used.')},
160
-
fontCharacter: {type: 'string',description: localize('iconDefinition.fontCharacter','The font character associated with the icon definition.')}
172
+
fontId: {type: 'string',description: localize('iconDefinition.fontId','The id of the font to use. If not set, the font that is defined first is used.'),pattern: fontIdRegex.source,patternErrorMessage: fontIdErrorMessage},
173
+
fontCharacter: {type: 'string',description: localize('iconDefinition.fontCharacter','The font character associated with the icon definition.'),pattern: fontCharacterRegex.source,patternErrorMessage: fontCharacterErrorMessage}
0 commit comments