Commit a80edb2e authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

lspclient: declarationProvider is now specified in LSP protocol

See also issue #31
parent 321e1c26
......@@ -2254,8 +2254,7 @@ public:
if (server) {
const auto &caps = server->capabilities();
defEnabled = caps.definitionProvider;
// FIXME no real official protocol way to detect, so enable anyway
declEnabled = caps.declarationProvider || true;
declEnabled = caps.declarationProvider;
refEnabled = caps.referencesProvider;
implEnabled = caps.implementationProvider;
hoverEnabled = caps.hoverProvider;
......
......@@ -76,7 +76,7 @@ struct LSPServerCapabilities {
LSPCompletionOptions completionProvider;
LSPSignatureHelpOptions signatureHelpProvider;
bool definitionProvider = false;
// FIXME ? clangd unofficial extension
// official extension as of 3.14.0
bool declarationProvider = false;
bool referencesProvider = false;
bool implementationProvider = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment