Skip to content
Closed
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 @@ -63,11 +63,15 @@ internal class RazorSemanticTokensLegend
private readonly SemanticTokensLegend _legend;
private readonly Dictionary<string, int> _razorTokenTypeMap;

#pragma warning disable IDE0060 // Remove unused parameter
public RazorSemanticTokensLegend(ClientCapabilities clientCapabilities)
#pragma warning restore IDE0060 // Remove unused parameter
{
using var _ = ArrayBuilderPool<string>.GetPooledObject(out var builder);

builder.AddRange(RazorSemanticTokensAccessor.GetTokenTypes(clientCapabilities));
#pragma warning disable CS0618 // Type or member is obsolete
builder.AddRange(RazorSemanticTokensAccessor.RoslynTokenTypes);
#pragma warning restore CS0618 // Type or member is obsolete

_razorTokenTypeMap = new Dictionary<string, int>();
foreach (var razorTokenType in GetRazorSemanticTokenTypes())
Expand Down