diff --git a/semantic-tokens-sample/sample/sample.semanticLanguage b/semantic-tokens-sample/sample/sample.semanticLanguage index e606922a..6b8f31c9 100644 --- a/semantic-tokens-sample/sample/sample.semanticLanguage +++ b/semantic-tokens-sample/sample/sample.semanticLanguage @@ -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] diff --git a/semantic-tokens-sample/src/extension.ts b/semantic-tokens-sample/src/extension.ts index 0292f8e0..7407462c 100644 --- a/semantic-tokens-sample/src/extension.ts +++ b/semantic-tokens-sample/src/extension.ts @@ -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));