[PATCH] D35986: [clangd] Add ':' to completion trigger characters.

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 28 03:44:47 PDT 2017


ilya-biryukov created this revision.

Without it we don't get completion requests from VSCode after
nested name qualifiers (e.g. after 'std::').


https://reviews.llvm.org/D35986

Files:
  clangd/ClangdLSPServer.cpp


Index: clangd/ClangdLSPServer.cpp
===================================================================
--- clangd/ClangdLSPServer.cpp
+++ clangd/ClangdLSPServer.cpp
@@ -86,7 +86,7 @@
           "documentRangeFormattingProvider": true,
           "documentOnTypeFormattingProvider": {"firstTriggerCharacter":"}","moreTriggerCharacter":[]},
           "codeActionProvider": true,
-          "completionProvider": {"resolveProvider": false, "triggerCharacters": [".",">"]},
+          "completionProvider": {"resolveProvider": false, "triggerCharacters": [".",">",":"]},
           "definitionProvider": true
         }}})");
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35986.108621.patch
Type: text/x-patch
Size: 625 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170728/c1e64c22/attachment.bin>


More information about the cfe-commits mailing list