[PATCH] D35986: [clangd] Add ':' to completion trigger characters.
Phabricator via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 31 02:28:32 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL309550: [clangd] Add ':' to completion trigger characters. (authored by ibiryukov).
Changed prior to commit:
https://reviews.llvm.org/D35986?vs=108621&id=108887#toc
Repository:
rL LLVM
https://reviews.llvm.org/D35986
Files:
clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp
clang-tools-extra/trunk/test/clangd/formatting.test
Index: clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp
===================================================================
--- clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp
+++ clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp
@@ -86,7 +86,7 @@
"documentRangeFormattingProvider": true,
"documentOnTypeFormattingProvider": {"firstTriggerCharacter":"}","moreTriggerCharacter":[]},
"codeActionProvider": true,
- "completionProvider": {"resolveProvider": false, "triggerCharacters": [".",">"]},
+ "completionProvider": {"resolveProvider": false, "triggerCharacters": [".",">",":"]},
"definitionProvider": true
}}})");
}
Index: clang-tools-extra/trunk/test/clangd/formatting.test
===================================================================
--- clang-tools-extra/trunk/test/clangd/formatting.test
+++ clang-tools-extra/trunk/test/clangd/formatting.test
@@ -4,14 +4,14 @@
Content-Length: 125
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}}
-# CHECK: Content-Length: 462
+# CHECK: Content-Length: 466
# CHECK: {"jsonrpc":"2.0","id":0,"result":{"capabilities":{
# CHECK: "textDocumentSync": 1,
# CHECK: "documentFormattingProvider": true,
# CHECK: "documentRangeFormattingProvider": true,
# CHECK: "documentOnTypeFormattingProvider": {"firstTriggerCharacter":"}","moreTriggerCharacter":[]},
# CHECK: "codeActionProvider": true,
-# CHECK: "completionProvider": {"resolveProvider": false, "triggerCharacters": [".",">"]},
+# CHECK: "completionProvider": {"resolveProvider": false, "triggerCharacters": [".",">",":"]},
# CHECK: "definitionProvider": true
# CHECK: }}}
#
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35986.108887.patch
Type: text/x-patch
Size: 1770 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170731/2f811682/attachment.bin>
More information about the cfe-commits
mailing list