forked from OSchip/llvm-project
[clangd] Log warning when using legacy (theia) semantic highlighting.
The legacy protocol will be removed on trunk after the 12 branch cut, and gone in clangd 13. Differential Revision: https://reviews.llvm.org/D95031
This commit is contained in:
parent
d91ee2f782
commit
29472bb769
|
@ -510,6 +510,11 @@ void ClangdLSPServer::onInitialize(const InitializeParams &Params,
|
|||
"semanticTokens request, choosing the latter (no notifications).");
|
||||
Opts.TheiaSemanticHighlighting = false;
|
||||
}
|
||||
if (Opts.TheiaSemanticHighlighting) {
|
||||
log("Using legacy semanticHighlights notification, which will be removed "
|
||||
"in clangd 13. Clients should use the standard semanticTokens "
|
||||
"request instead.");
|
||||
}
|
||||
|
||||
if (Params.rootUri && *Params.rootUri)
|
||||
Opts.WorkspaceRoot = std::string(Params.rootUri->file());
|
||||
|
|
Loading…
Reference in New Issue