[PATCH] D115799: [clangd] Add ) to signature-help triggers
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 15 05:47:20 PST 2021
kadircet created this revision.
Herald added subscribers: usaxena95, arphaman.
kadircet requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.
It is important for nested function calls.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D115799
Files:
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/test/initialize-params.test
Index: clang-tools-extra/clangd/test/initialize-params.test
===================================================================
--- clang-tools-extra/clangd/test/initialize-params.test
+++ clang-tools-extra/clangd/test/initialize-params.test
@@ -107,7 +107,8 @@
# CHECK-NEXT: "signatureHelpProvider": {
# CHECK-NEXT: "triggerCharacters": [
# CHECK-NEXT: "(",
-# CHECK-NEXT: ","
+# CHECK-NEXT: ",",
+# CHECK-NEXT: ")"
# CHECK-NEXT: ]
# CHECK-NEXT: },
# CHECK-NEXT: "textDocumentSync": {
Index: clang-tools-extra/clangd/ClangdLSPServer.cpp
===================================================================
--- clang-tools-extra/clangd/ClangdLSPServer.cpp
+++ clang-tools-extra/clangd/ClangdLSPServer.cpp
@@ -555,7 +555,7 @@
}},
{"signatureHelpProvider",
llvm::json::Object{
- {"triggerCharacters", {"(", ","}},
+ {"triggerCharacters", {"(", ",", ")"}},
}},
{"declarationProvider", true},
{"definitionProvider", true},
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115799.394539.patch
Type: text/x-patch
Size: 1054 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211215/348d9b17/attachment.bin>
More information about the cfe-commits
mailing list