summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-28 10:57:43 +0800
committersumneko <sumneko@hotmail.com>2019-04-28 10:57:43 +0800
commit0e3fe7fe0c9d660d26a735b0d3d962f4c4289ca8 (patch)
treeee34982f01d594f19ce694001411194d8bcf7876 /server/test
parentfdbc780ec38812ad4f63dc1a5cbda2c0d07f7003 (diff)
downloadlua-language-server-0e3fe7fe0c9d660d26a735b0d3d962f4c4289ca8.zip
---@param的自动完成过滤掉self
Diffstat (limited to 'server/test')
-rw-r--r--server/test/completion/init.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index eb30d9a0..6a3b6f29 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -872,6 +872,34 @@ a any
}
TEST [[
+---@param $
+function mt:f(a, b, c)
+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 xyz Class
---@param xxx Class
function f(x$)