mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-21 23:25:07 +00:00
Better code completion trigger characters.
This commit is contained in:
parent
370fbde288
commit
592ef1c3cf
@ -1304,7 +1304,9 @@ bool QueryDbMainLoop(
|
||||
|
||||
response.result.capabilities.completionProvider = lsCompletionOptions();
|
||||
response.result.capabilities.completionProvider->resolveProvider = false;
|
||||
response.result.capabilities.completionProvider->triggerCharacters = { ".", "::", "->" };
|
||||
// vscode doesn't support trigger character sequences, so we use ':' for '::' and '>' for '->'.
|
||||
// See https://github.com/Microsoft/language-server-protocol/issues/138.
|
||||
response.result.capabilities.completionProvider->triggerCharacters = { ".", ":", ">" };
|
||||
|
||||
response.result.capabilities.codeLensProvider = lsCodeLensOptions();
|
||||
response.result.capabilities.codeLensProvider->resolveProvider = false;
|
||||
|
Loading…
Reference in New Issue
Block a user