diff --git a/src/LanguageServer/Protocol/Handler/SemanticTokens/CustomLspSemanticTokenNames.cs b/src/LanguageServer/Protocol/Handler/SemanticTokens/CustomLspSemanticTokenNames.cs index 3c2fd00aa400e..e217db18a9c8d 100644 --- a/src/LanguageServer/Protocol/Handler/SemanticTokens/CustomLspSemanticTokenNames.cs +++ b/src/LanguageServer/Protocol/Handler/SemanticTokens/CustomLspSemanticTokenNames.cs @@ -26,6 +26,9 @@ internal sealed class CustomLspSemanticTokenNames public const string Punctuation = "punctuation"; public const string StringVerbatim = "stringVerbatim"; public const string StringEscapeCharacter = "stringEscapeCharacter"; + public const string ArrayName = "array"; + public const string PointerName = "pointer"; + public const string FunctionPointerName = "functionPointer"; public const string RecordClassName = "recordClass"; public const string DelegateName = "delegate"; public const string ModuleName = "module"; @@ -92,6 +95,9 @@ internal sealed class CustomLspSemanticTokenNames [ClassificationTypeNames.Punctuation] = Punctuation, [ClassificationTypeNames.VerbatimStringLiteral] = StringVerbatim, [ClassificationTypeNames.StringEscapeCharacter] = StringEscapeCharacter, + [ClassificationTypeNames.ArrayName] = ArrayName, + [ClassificationTypeNames.PointerName] = PointerName, + [ClassificationTypeNames.FunctionPointerName] = FunctionPointerName, [ClassificationTypeNames.RecordClassName] = RecordClassName, [ClassificationTypeNames.DelegateName] = DelegateName, [ClassificationTypeNames.ModuleName] = ModuleName, diff --git a/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensSchema.cs b/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensSchema.cs index 88215a20a7a6b..afb4a27b58244 100644 --- a/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensSchema.cs +++ b/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensSchema.cs @@ -50,9 +50,6 @@ internal readonly struct SemanticTokensSchema [ClassificationTypeNames.EnumMemberName] = SemanticTokenTypes.EnumMember, [ClassificationTypeNames.EventName] = SemanticTokenTypes.Event, [ClassificationTypeNames.PreprocessorKeyword] = SemanticTokenTypes.Macro, - [ClassificationTypeNames.ArrayName] = SemanticTokenTypes.Class, - [ClassificationTypeNames.PointerName] = SemanticTokenTypes.Struct, - [ClassificationTypeNames.FunctionPointerName] = SemanticTokenTypes.Struct, // in https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide#standard-token-types-and-modifiers [ClassificationTypeNames.LabelName] = "label", }).ToImmutableDictionary(); diff --git a/src/VisualStudio/Core/Def/ColorSchemes/VisualStudio2019.xml b/src/VisualStudio/Core/Def/ColorSchemes/VisualStudio2019.xml index 51acc7896b71e..ef1ee87859868 100644 --- a/src/VisualStudio/Core/Def/ColorSchemes/VisualStudio2019.xml +++ b/src/VisualStudio/Core/Def/ColorSchemes/VisualStudio2019.xml @@ -46,6 +46,12 @@ + + + + + + @@ -230,6 +236,12 @@ + + + + + + @@ -414,6 +426,12 @@ + + + + + + @@ -595,6 +613,12 @@ + + + + + + @@ -780,6 +804,15 @@ + + + + + + + + +