Closed alexr00 closed 1 year ago
@alexr00 Thanks for pointing this out. We did intentionally update many of our scopes to be more specific. We grouped many keywords beneath broad categories. I see now that the VS Code themes are expecting keyword.other.using
and that the cpp tmLanguage uses keyword.other.using.directive
to provide this extra detail.
Should the directive keywords (using
, static
, global
, extern alias
) then have the scope keyword.other.X.directive
instead?
In terms of grouping it makes less sense, but it will be compatible with the existing configuration.
But it will be harder to configure all the directive keywords into one colour, as you will then have to configure them individually (unless something like keyword.other.*.directive
works? I've never tried).
Thanks @JoeRobich! I will update the built-in VS Code themes. Extension provided themes will still be affected.
Details
What editor are you seeing the problem in? (e.g. Atom, Visual Studio Code, etc.) VS Code
What version of the editor are you using? 1.81
What color theme are you using? Default, Dark Modern
Repro
Current syntax highlighting in VS Code
If I were to pull in the latest changes from https://github.com/dotnet/csharp-tmLanguage
The scope assigned to
using
has gone fromkeyword.other.using.cs
tokeyword.other.directive.using.cs
. Is this intentional?