Skip to content

Commit f1be499

Browse files
committed
semantic styling readonly variables & add enumMember, event
1 parent a0c3fcd commit f1be499

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/vs/platform/theme/common/tokenClassificationRegistry.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,10 +412,11 @@ function registerDefaultClassifications(): void {
412412
registerTokenType('member', nls.localize('member', "Style for member"), [['entity.name.function.member'], ['support.function']]);
413413
registerTokenType('macro', nls.localize('macro', "Style for macros."), [['entity.name.other.preprocessor.macro']], 'function');
414414

415-
registerTokenType('variable', nls.localize('variable', "Style for variables."), [['variable'], ['entity.name.variable']]);
416-
registerTokenType('constant', nls.localize('constant', "Style for constants."), [['variable.other.constant']], 'variable');
415+
registerTokenType('variable', nls.localize('variable', "Style for variables."), [['variable.other.readwrite'], ['entity.name.variable']]);
417416
registerTokenType('parameter', nls.localize('parameter', "Style for parameters."), [['variable.parameter']], 'variable');
418417
registerTokenType('property', nls.localize('property', "Style for properties."), [['variable.other.property']], 'variable');
418+
registerTokenType('enumMember', nls.localize('enumMember', "Style for enum members."), [['variable.other.enummember']], 'variable');
419+
registerTokenType('event', nls.localize('event', "Style for events."), [['variable.other.event']], 'variable');
419420

420421
registerTokenType('label', nls.localize('labels', "Style for labels. "), undefined);
421422

@@ -431,6 +432,7 @@ function registerDefaultClassifications(): void {
431432
tokenClassificationRegistry.registerTokenModifier('readonly', nls.localize('readonly', "Style to use for symbols that are readonly."), undefined);
432433

433434

435+
registerTokenStyleDefault('variable.readonly', [['variable.other.constant']]);
434436
}
435437

436438
export function getTokenClassificationRegistry(): ITokenClassificationRegistry {

0 commit comments

Comments
 (0)