semantic tokens: use method instead of member

This commit is contained in:
Martin Aeschlimann
2020-11-23 11:50:36 +01:00
parent cf591da016
commit a6e1847adb
2 changed files with 3 additions and 3 deletions

View File

@ -1,10 +1,10 @@
Available token types:
[comment] [string] [keyword] [number] [regexp] [operator] [namespace]
[type] [struct] [class] [interface] [enum] [typeParameter] [function]
[member] [macro] [variable] [parameter] [property] [label]
[method] [macro] [variable] [parameter] [property] [label]
Available token modifiers:
[type.declaration] [type.documentation] [type.member] [type.static]
[type.declaration] [type.documentation] [type.readonly] [type.static]
[type.abstract] [type.deprecated] [type.modification] [type.async]
Some examples:

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',
'member', 'macro', 'variable', 'parameter', 'property', 'label'
'method', 'macro', 'variable', 'parameter', 'property', 'label'
];
tokenTypesLegend.forEach((tokenType, index) => tokenTypes.set(tokenType, index));