-
Notifications
You must be signed in to change notification settings - Fork 799
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
Question: Are DiagnosticTag
s deprecated in favor of semantic tokens?
#2024
Comments
Inactive regions are a feature for dealing with conditional preprocessor branches in C/C++ code, for example: #ifdef WINDOWS
// windows-specific declarations
#else
// declarations specific to other platforms
#endif If the active build configuration is Windows, the region between the Diagnostics don't seem appropriate here, as a region being inactive does not indicate anything wrong with the code, or any action that should potentially be taken by the programmer (unlike, say, unused code, where the programmer may want to remove it). We decided to go with our own protocol rather than using semantic tokens for the following reasons:
|
Thanks for the quick feedback!
EDIT: Nevermind, after chatting with Neovim, I'm convinced this is just underspecified in the spec. I've filed #2026 to try to address this. |
DiagnosticTag
s deprecated in favor of Semantic Tokens?DiagnosticTag
s deprecated in favor of semantic tokens?
I've seen a some conversations that imply that semantic tokens obsolete DiagnosticTag:
textDocument/inactiveRegions
request: Document the textDocument/inactiveRegions extension llvm/clangd-www#104. I think this is implemented using the semantic tokens api, but I haven't checked.unused
token modifier vscode-languageserver-node#604But the discussion over on microsoft/vscode#92157 has a comment from @alexdima that says:
So I'm confused. @HighCommander4, maybe you know the answer? Why does clangd need an extension to the Language Server Protocol to do this? Is it related to marking large regions of code as unused?
The text was updated successfully, but these errors were encountered: