diff --git a/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs b/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs index 15c3acda9213e..c843c239128ee 100644 --- a/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs +++ b/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs @@ -91,7 +91,7 @@ public static async Task ComputeSemanticTokensDataAsync( using var _1 = Classifier.GetPooledList(out var classifiedSpans); using var _2 = Classifier.GetPooledList(out var updatedClassifiedSpans); - // We either calculate the tokens for the full document span, or the user + // We either calculate the tokens for the full document span, or the user // can pass in a range from the full document if they wish. ImmutableArray textSpans; if (spans.Length == 0) @@ -338,6 +338,10 @@ private static int ComputeNextToken( // 6. Token modifiers - each set bit will be looked up in SemanticTokensLegend.tokenModifiers modifierBits |= TokenModifiers.Deprecated; } + else if (classificationType == ClassificationTypeNames.TestCode) + { + // Skip additive types that are not being converted to token modifiers. + } else { // 7. Token type - looked up in SemanticTokensLegend.tokenTypes (language server defined mapping