diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-06 17:34:21 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-06 17:34:21 +0800 |
commit | ca0341d0760a067b6554d5b7aeb8357ec84e564f (patch) | |
tree | c2061160ad422d4b164e863176e0b667ed74b457 /server/test/completion/init.lua | |
parent | d889c7fa1fb23e7c83a9c085baf05a1d9f1b3ac1 (diff) | |
download | lua-language-server-ca0341d0760a067b6554d5b7aeb8357ec84e564f.zip |
更新自动完成
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r-- | server/test/completion/init.lua | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index 3e7f9792..874b0948 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -182,40 +182,40 @@ ass@ } TEST [[ -local t = { - abc = 1, -} -t.a@ +local zabc = 1 +z@ ]] { { - label = 'abc', - kind = CompletionItemKind.Enum, + label = 'zabc', + kind = CompletionItemKind.Variable, detail = '= 1', } } TEST [[ -local zabc = 1 +local zabc = 1.0 z@ ]] { { label = 'zabc', kind = CompletionItemKind.Variable, - detail = '= 1', + detail = '= 1.0', } } TEST [[ -local zabc = 1.0 -z@ +local t = { + abc = 1, +} +t.a@ ]] { { - label = 'zabc', - kind = CompletionItemKind.Variable, - detail = '= 1.0', + label = 'abc', + kind = CompletionItemKind.Enum, + detail = '= 1', } } |