summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-07 16:37:29 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-07 16:37:29 +0800
commita8c95b64d7e8a8481cbe961b8b872ef0710d618f (patch)
tree7cae49375d0387d2a813f37ce82718f01ebd1505 /test
parent24b83882cfca469a797bf5536f2d5c68762189bb (diff)
downloadlua-language-server-a8c95b64d7e8a8481cbe961b8b872ef0710d618f.zip
fix call snip
Diffstat (limited to 'test')
-rw-r--r--test/completion/init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua
index b2cac99d..89772853 100644
--- a/test/completion/init.lua
+++ b/test/completion/init.lua
@@ -2479,6 +2479,7 @@ TEST [[
}
}
+Cared['insertText'] = true
TEST [[
---@overload fun(a: any, b: any)
local function zzzz(a) end
@@ -2488,17 +2489,21 @@ zzzz$
{
label = 'zzzz(a)',
kind = define.CompletionItemKind.Function,
+ insertText = 'zzzz',
},
{
label = 'zzzz(a)',
kind = define.CompletionItemKind.Snippet,
+ insertText = 'zzzz(${1:a: any})',
},
{
label = 'zzzz(a, b)',
kind = define.CompletionItemKind.Function,
+ insertText = 'zzzz',
},
{
label = 'zzzz(a, b)',
kind = define.CompletionItemKind.Snippet,
+ insertText = 'zzzz(${1:a: any}, ${2:b: any})',
},
}