mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
add decorator ro semantic tokens sample
This commit is contained in:
@ -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]
|
||||
|
||||
@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user