Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static async Task<int[]> 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<TextSpan> textSpans;
if (spans.Length == 0)
Expand Down Expand Up @@ -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
Expand Down