From 592ef1c3cf2ffd1dfeeadc7441989778444f354f Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Sun, 23 Apr 2017 18:52:38 -0700 Subject: [PATCH] Better code completion trigger characters. --- src/command_line.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/command_line.cc b/src/command_line.cc index 4f9386fa..a02e5535 100644 --- a/src/command_line.cc +++ b/src/command_line.cc @@ -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;