10 references to SemanticTokensSchema
Microsoft.CodeAnalysis.LanguageServer.Protocol (9)
DefaultCapabilitiesProvider.cs (2)
102
TokenTypes = [..
SemanticTokensSchema
.GetSchema(clientCapabilities.HasVisualStudioLspCapability()).AllTokenTypes],
103
TokenModifiers =
SemanticTokensSchema
.TokenModifiers
Handler\SemanticTokens\SemanticTokensHelpers.cs (2)
88
var tokenTypesToIndex =
SemanticTokensSchema
.GetSchema(supportsVisualStudioExtensions).TokenTypeToIndex;
246
var tokenTypeMap =
SemanticTokensSchema
.GetSchema(supportsVisualStudioExtensions).TokenTypeMap;
Handler\SemanticTokens\SemanticTokensSchema.cs (5)
61
private static readonly
SemanticTokensSchema
s_vsTokenSchema = new(ClassificationTypeNames.AllTypeNames
72
private static readonly
SemanticTokensSchema
s_pureLspTokenSchema = new(ClassificationTypeNames.AllTypeNames
118
public static
SemanticTokensSchema
GetSchema(bool clientSupportsVisualStudioExtensions)
123
public static
SemanticTokensSchema
LegacyTokenSchemaForRazor
126
public static
SemanticTokensSchema
LegacyTokensSchemaForLSIF
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
SemanticTokens\SemanticTokensRangeTests.cs (1)
584
var
schema = SemanticTokensSchema.GetSchema(capabilities.HasVisualStudioLspCapability());