Skip to content

[E] SemanticTokenKind

Token-type indices used by the server’s semantic-token legend. Names map to LSP token types by lowercasing their first character, including docCommentTag.

Enumeration MemberValueDescription
Class2LSP class category, reserved in the legend.
Comment16Ordinary comments and documentation text outside classified tags.
DocCommentTag21Recognized documentation tags, including their leading at sign.
Enum3Enum and union declaration names.
EnumMember10Enum member declaration names.
Event11LSP event category, reserved in the legend.
Function12Operations, functions, and scalar constructors.
Interface4Interface declaration names.
Keyword15Language keywords and compiler directives.
Macro14Decorator uses and unrecognized documentation tags.
Method13LSP method category, reserved in the legend.
Namespace0Namespace declarations, using directives, and bases of qualified references.
Number18Numeric literals in source.
Operator20Punctuation and interpolation delimiters.
Parameter7Function or decorator parameter declarations.
Property9Model, object, and union properties, including union variants.
Regexp19LSP regular-expression category, reserved in the legend.
String17String literals and the text portions of interpolated strings.
Struct5Model and alias declaration names.
Type1Scalar declarations and references classified syntactically as types.
TypeParameter6Template parameter declarations and named template arguments.
Variable8Constant declarations and parameter or property names in documentation tags.