mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-27 18:11:57 +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 {
|
struct ClientCapability {
|
||||||
// TextDocumentClientCapabilities.documentSymbol.hierarchicalDocumentSymbolSupport
|
// TextDocumentClientCapabilities.documentSymbol.hierarchicalDocumentSymbolSupport
|
||||||
bool hierarchicalDocumentSymbolSupport = false;
|
bool hierarchicalDocumentSymbolSupport = true;
|
||||||
// TextDocumentClientCapabilities.completion.completionItem.snippetSupport
|
// TextDocumentClientCapabilities.completion.completionItem.snippetSupport
|
||||||
bool snippetSupport = false;
|
bool snippetSupport = true;
|
||||||
} client;
|
} client;
|
||||||
|
|
||||||
struct CodeLens {
|
struct CodeLens {
|
||||||
|
@ -441,9 +441,9 @@ struct Handler_Initialize : BaseMessageHandler<In_InitializeRequest> {
|
|||||||
|
|
||||||
// Client capabilities
|
// Client capabilities
|
||||||
const auto &capabilities = params.capabilities;
|
const auto &capabilities = params.capabilities;
|
||||||
g_config->client.snippetSupport =
|
g_config->client.snippetSupport &=
|
||||||
capabilities.textDocument.completion.completionItem.snippetSupport;
|
capabilities.textDocument.completion.completionItem.snippetSupport;
|
||||||
g_config->client.hierarchicalDocumentSymbolSupport =
|
g_config->client.hierarchicalDocumentSymbolSupport &=
|
||||||
capabilities.textDocument.documentSymbol.hierarchicalDocumentSymbolSupport;
|
capabilities.textDocument.documentSymbol.hierarchicalDocumentSymbolSupport;
|
||||||
|
|
||||||
// Ensure there is a resource directory.
|
// Ensure there is a resource directory.
|
||||||
|
Loading…
Reference in New Issue
Block a user