summaryrefslogtreecommitdiff
path: root/server/test/completion/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-26 17:46:36 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-26 17:46:36 +0800
commitd1b9237c44bdd9b1fccca5aa1a2b83608027e91d (patch)
tree16cf93e87017e454c9ed772f30a7ba6a77e61b31 /server/test/completion/init.lua
parent68bb36273433e7ea764dc1cd583b3a97ccff7a0b (diff)
downloadlua-language-server-d1b9237c44bdd9b1fccca5aa1a2b83608027e91d.zip
库函数的可选值支持自动完成
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r--server/test/completion/init.lua46
1 files changed, 46 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index 8a477ab2..c64ffcca 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -325,3 +325,49 @@ end
kind = CompletionItemKind.Variable,
},
}
+
+TEST [[
+collectgarbage('@')
+]]
+{
+ {
+ label = 'collect',
+ kind = CompletionItemKind.EnumMember,
+ documentation = EXISTS,
+ },
+ {
+ label = 'stop',
+ kind = CompletionItemKind.EnumMember,
+ documentation = EXISTS,
+ },
+ {
+ label = 'restart',
+ kind = CompletionItemKind.EnumMember,
+ documentation = EXISTS,
+ },
+ {
+ label = 'count',
+ kind = CompletionItemKind.EnumMember,
+ documentation = EXISTS,
+ },
+ {
+ label = 'step',
+ kind = CompletionItemKind.EnumMember,
+ documentation = EXISTS,
+ },
+ {
+ label = 'setpause',
+ kind = CompletionItemKind.EnumMember,
+ documentation = EXISTS,
+ },
+ {
+ label = 'setstepmul',
+ kind = CompletionItemKind.EnumMember,
+ documentation = EXISTS,
+ },
+ {
+ label = 'isrunning',
+ kind = CompletionItemKind.EnumMember,
+ documentation = EXISTS,
+ },
+}