add decorator ro semantic tokens sample

This commit is contained in:
Martin Aeschlimann
2021-10-25 23:23:19 +02:00
parent 355d5851a8
commit 6429e7f0db
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
Available token types:
[comment] [string] [keyword] [number] [regexp] [operator] [namespace]
[type] [struct] [class] [interface] [enum] [typeParameter] [function]
[method] [macro] [variable] [parameter] [property] [label]
[method] [macro] [variable] [parameter] [property] [label] [decorator]
Available token modifiers:
[type.declaration] [type.documentation] [type.readonly] [type.static]

View File

@ -7,7 +7,7 @@ const legend = (function () {
const tokenTypesLegend = [
'comment', 'string', 'keyword', 'number', 'regexp', 'operator', 'namespace',
'type', 'struct', 'class', 'interface', 'enum', 'typeParameter', 'function',
'method', 'macro', 'variable', 'parameter', 'property', 'label'
'method', 'decorator', 'macro', 'variable', 'parameter', 'property', 'label'
];
tokenTypesLegend.forEach((tokenType, index) => tokenTypes.set(tokenType, index));