summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog.md1
-rw-r--r--script/core/completion.lua4
2 files changed, 5 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md
index d276660d..357cdc21 100644
--- a/changelog.md
+++ b/changelog.md
@@ -2,6 +2,7 @@
## 2.3.5
* `CHG` improve memory usage
+* `CHG` completion: call snip triggers signature (VSCode only)
* `FIX` completion: may not find results
## 2.3.4
diff --git a/script/core/completion.lua b/script/core/completion.lua
index 26776634..ad8dd466 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -210,6 +210,10 @@ local function buildFunction(results, source, value, oop, data)
snipData.kind = define.CompletionItemKind.Snippet
snipData.insertText = buildFunctionSnip(source, value, oop)
snipData.insertTextFormat = 2
+ snipData.command = {
+ title = 'trigger signature',
+ command = 'editor.action.triggerParameterHints',
+ }
snipData.id = stack(function ()
return {
detail = buildDetail(source),