We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fb353c commit 3249cd9Copy full SHA for 3249cd9
src/PowerShellEditorServices/Services/TextDocument/Handlers/PsesSemanticTokensHandler.cs
@@ -108,6 +108,11 @@ private static SemanticTokenType MapSemanticTokenType(Token token)
108
return SemanticTokenType.Operator;
109
}
110
111
+ if ((token.TokenFlags & TokenFlags.AttributeName) != 0)
112
+ {
113
+ return SemanticTokenType.Decorator;
114
+ }
115
+
116
if ((token.TokenFlags & TokenFlags.TypeName) != 0)
117
{
118
return SemanticTokenType.Type;
@@ -142,8 +147,8 @@ private static SemanticTokenType MapSemanticTokenType(Token token)
142
147
case TokenKind.Number:
143
148
return SemanticTokenType.Number;
144
149
145
- case TokenKind.Generic:
146
- return SemanticTokenType.Function;
150
+ case TokenKind.Label:
151
+ return SemanticTokenType.Label;
152
153
154
return null;
0 commit comments