diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-26 17:46:36 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-26 17:46:36 +0800 |
commit | d1b9237c44bdd9b1fccca5aa1a2b83608027e91d (patch) | |
tree | 16cf93e87017e454c9ed772f30a7ba6a77e61b31 /server/test/completion/init.lua | |
parent | 68bb36273433e7ea764dc1cd583b3a97ccff7a0b (diff) | |
download | lua-language-server-d1b9237c44bdd9b1fccca5aa1a2b83608027e91d.zip |
库函数的可选值支持自动完成
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r-- | server/test/completion/init.lua | 46 |
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, + }, +} |