mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-27 10:02:03 +00:00
Allow force disabling snippet via client.snippetSupport
This commit is contained in:
parent
dfdabe41b2
commit
174466516e
@ -70,9 +70,9 @@ struct Config {
|
||||
|
||||
struct ClientCapability {
|
||||
// TextDocumentClientCapabilities.documentSymbol.hierarchicalDocumentSymbolSupport
|
||||
bool hierarchicalDocumentSymbolSupport = false;
|
||||
bool hierarchicalDocumentSymbolSupport = true;
|
||||
// TextDocumentClientCapabilities.completion.completionItem.snippetSupport
|
||||
bool snippetSupport = false;
|
||||
bool snippetSupport = true;
|
||||
} client;
|
||||
|
||||
struct CodeLens {
|
||||
|
@ -441,9 +441,9 @@ struct Handler_Initialize : BaseMessageHandler<In_InitializeRequest> {
|
||||
|
||||
// Client capabilities
|
||||
const auto &capabilities = params.capabilities;
|
||||
g_config->client.snippetSupport =
|
||||
g_config->client.snippetSupport &=
|
||||
capabilities.textDocument.completion.completionItem.snippetSupport;
|
||||
g_config->client.hierarchicalDocumentSymbolSupport =
|
||||
g_config->client.hierarchicalDocumentSymbolSupport &=
|
||||
capabilities.textDocument.documentSymbol.hierarchicalDocumentSymbolSupport;
|
||||
|
||||
// Ensure there is a resource directory.
|
||||
|
Loading…
Reference in New Issue
Block a user