Set declarationProvider

This commit is contained in:
Fangrui Song 2019-04-17 08:14:27 -07:00
parent 99930623ef
commit 2e6aed4408

View File

@ -72,6 +72,7 @@ struct ServerCap {
struct SignatureHelpOptions { struct SignatureHelpOptions {
std::vector<const char *> triggerCharacters = {"(", ","}; std::vector<const char *> triggerCharacters = {"(", ","};
} signatureHelpProvider; } signatureHelpProvider;
bool declarationProvider = true;
bool definitionProvider = true; bool definitionProvider = true;
bool typeDefinitionProvider = true; bool typeDefinitionProvider = true;
bool implementationProvider = true; bool implementationProvider = true;
@ -111,7 +112,7 @@ REFLECT_STRUCT(ServerCap::SignatureHelpOptions, triggerCharacters);
REFLECT_STRUCT(ServerCap::TextDocumentSyncOptions, openClose, change, willSave, REFLECT_STRUCT(ServerCap::TextDocumentSyncOptions, openClose, change, willSave,
willSaveWaitUntil, save); willSaveWaitUntil, save);
REFLECT_STRUCT(ServerCap, textDocumentSync, hoverProvider, completionProvider, REFLECT_STRUCT(ServerCap, textDocumentSync, hoverProvider, completionProvider,
signatureHelpProvider, definitionProvider, signatureHelpProvider, declarationProvider, definitionProvider,
implementationProvider, typeDefinitionProvider, implementationProvider, typeDefinitionProvider,
referencesProvider, documentHighlightProvider, referencesProvider, documentHighlightProvider,
documentSymbolProvider, workspaceSymbolProvider, documentSymbolProvider, workspaceSymbolProvider,