From 2e6aed440887489ae70bbd98fc88587c0e769b83 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 17 Apr 2019 08:14:27 -0700 Subject: [PATCH] Set declarationProvider --- src/messages/initialize.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/messages/initialize.cc b/src/messages/initialize.cc index 772b9127..87dc8f1b 100644 --- a/src/messages/initialize.cc +++ b/src/messages/initialize.cc @@ -72,6 +72,7 @@ struct ServerCap { struct SignatureHelpOptions { std::vector triggerCharacters = {"(", ","}; } signatureHelpProvider; + bool declarationProvider = true; bool definitionProvider = true; bool typeDefinitionProvider = true; bool implementationProvider = true; @@ -111,7 +112,7 @@ REFLECT_STRUCT(ServerCap::SignatureHelpOptions, triggerCharacters); REFLECT_STRUCT(ServerCap::TextDocumentSyncOptions, openClose, change, willSave, willSaveWaitUntil, save); REFLECT_STRUCT(ServerCap, textDocumentSync, hoverProvider, completionProvider, - signatureHelpProvider, definitionProvider, + signatureHelpProvider, declarationProvider, definitionProvider, implementationProvider, typeDefinitionProvider, referencesProvider, documentHighlightProvider, documentSymbolProvider, workspaceSymbolProvider,