summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-07 16:20:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-07 16:20:35 +0800
commitd0f2fff90e56a6e2b1448217174e29fb0d17d05a (patch)
tree41ac0f2928e3b599f9e2122f8796ed8c325a2e6d /test
parent6c0fc0d438154f2164e10674f5c1a4b983382039 (diff)
downloadlua-language-server-d0f2fff90e56a6e2b1448217174e29fb0d17d05a.zip
resolve #478 new setting: `completion.showParams`
Diffstat (limited to 'test')
-rw-r--r--test/completion/init.lua27
1 files changed, 24 insertions, 3 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua
index ad60b538..d5631564 100644
--- a/test/completion/init.lua
+++ b/test/completion/init.lua
@@ -1773,9 +1773,6 @@ end)
TEST [[
--- JustTest
----@overload fun(list:table):string
----@overload fun(list:table, sep:string):string
----@overload fun(list:table, sep:string, i:number):string
---@param list table
---@param sep string
---@param i number
@@ -2477,3 +2474,27 @@ TEST [[
},
}
}
+
+TEST [[
+---@overload fun(a: any, b: any)
+local function zzzz(a) end
+zzzz$
+]]
+{
+ {
+ label = 'zzzz(a)',
+ kind = define.CompletionItemKind.Function,
+ },
+ {
+ label = 'zzzz(a)',
+ kind = define.CompletionItemKind.Snippet,
+ },
+ {
+ label = 'zzzz(a, b)',
+ kind = define.CompletionItemKind.Function,
+ },
+ {
+ label = 'zzzz(a, b)',
+ kind = define.CompletionItemKind.Snippet,
+ },
+}