summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-05-07 14:46:06 +0800
committersumneko <sumneko@hotmail.com>2019-05-07 14:46:06 +0800
commit3b8c92f7b74834fd8223d32df3f012e1c8a0a1cf (patch)
tree9bcacb59bd87412441d5ade1742bc2e2f612a88b /server/test
parent717729c33ce10067aac8afddd2fc2a5da9d801b5 (diff)
downloadlua-language-server-3b8c92f7b74834fd8223d32df3f012e1c8a0a1cf.zip
先特殊处理一下
Diffstat (limited to 'server/test')
-rw-r--r--server/test/completion/init.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index 19bf927a..f288af2a 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -907,6 +907,36 @@ a any
}
TEST [[
+local function f()
+ ---@param $
+ function f(a, b, c)
+ end
+end
+]]
+{
+ {
+ label = 'a, b, c',
+ kind = CompletionItemKind.Snippet,
+ insertText = [[
+a any
+---@param b any
+---@param c any]]
+ },
+ {
+ label = 'a',
+ kind = CompletionItemKind.Interface,
+ },
+ {
+ label = 'b',
+ kind = CompletionItemKind.Interface,
+ },
+ {
+ label = 'c',
+ kind = CompletionItemKind.Interface,
+ },
+}
+
+TEST [[
---@param $
function mt:f(a, b, c)
end