summaryrefslogtreecommitdiff
path: root/server/test/completion/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r--server/test/completion/init.lua37
1 files changed, 30 insertions, 7 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index 0857e8cb..340af415 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -818,11 +818,7 @@ local abcd
{
label = 'abc',
kind = CompletionItemKind.Class,
- },
- {
- label = 'xxx',
- kind = CompletionItemKind.Class,
- },
+ }
}
TEST [[
@@ -831,11 +827,38 @@ TEST [[
]]
{
{
- label = 'abb',
+ label = 'abc',
kind = CompletionItemKind.Class,
},
+}
+
+TEST [[
+---@class Class
+---@param x C$
+]]
+{
{
- label = 'abc',
+ label = 'Class',
kind = CompletionItemKind.Class,
},
}
+
+TEST [[
+---@param $
+function f(a, b, c)
+end
+]]
+{
+ {
+ label = 'a',
+ kind = CompletionItemKind.Unit,
+ },
+ {
+ label = 'b',
+ kind = CompletionItemKind.Unit,
+ },
+ {
+ label = 'c',
+ kind = CompletionItemKind.Unit,
+ },
+}