-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[semantic highlighting] improve fallback scope for macro #110150
Comments
The fallback scope for "macro" is described in https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide#semantic-token-scope-map |
Is there a better scope to use? @Colengms Any suggestions? |
@aeschli The TextMate scope for https://code.visualstudio.com/docs/cpp/colorization-cpp It was mentioned here, when discussing adding scopes to plus themes: #80783 The C/C++ extension currently uses the same semantic token for both function macros and non-function macros. |
@aeschli If |
@georgewfraser The tooltip wants to show how the style at the current position was determined. For semantic highlighting it would show the theming rule if it had matched one. As current theme doesn't have theming rules to neither the token type ( |
I pushed a fix to change the |
6496: Use builtin scopes more r=matklad a=georgewfraser VSCode has added more builtin fallback scopes, so we can remove some of our fallback scopes by aligning with their conventions. Note that the macro scope doesn't seem to actually *work* at the moment. I have filed a bug with VSCode: microsoft/vscode#110150 Co-authored-by: George Fraser <george@fivetran.com>
To verify open the https://github.com/microsoft/vscode-extension-samples/tree/master/semantic-tokens-sample, add |
This bug has been fixed in to the latest release of VS Code Insiders! @georgewfraser, you can help us out by confirming things are working as expected in the latest Insiders release. If things look good, please leave a comment with the text Happy Coding! |
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes/No
Not applicable, this bug can only occur when an extension is using macro syntax coloring.
The text was updated successfully, but these errors were encountered: