diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-25 12:42:53 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-25 12:42:53 +0800 |
commit | e76dd6108712200905e05edef73f6e71bcab40ff (patch) | |
tree | bcf06ee48f9618d4719f6167bb6c39b95cb3227c /server/test/completion/init.lua | |
parent | ac80195615204ef256736e3ef487ea5143fe86d1 (diff) | |
download | lua-language-server-e76dd6108712200905e05edef73f6e71bcab40ff.zip |
参数的自动完成添加可见局部变量
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r-- | server/test/completion/init.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index fec6f105..14c14476 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -684,3 +684,17 @@ local t = 'as@' local ask = 1 ]] (nil) + +TEST [[ +local add + +function f(a@) + local _ = add +end +]] +{ + { + label = 'add', + kind = CompletionItemKind.Variable, + }, +} |