summaryrefslogtreecommitdiff
path: root/server/test/completion/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-06 17:34:21 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-06 17:34:21 +0800
commitca0341d0760a067b6554d5b7aeb8357ec84e564f (patch)
treec2061160ad422d4b164e863176e0b667ed74b457 /server/test/completion/init.lua
parentd889c7fa1fb23e7c83a9c085baf05a1d9f1b3ac1 (diff)
downloadlua-language-server-ca0341d0760a067b6554d5b7aeb8357ec84e564f.zip
更新自动完成
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r--server/test/completion/init.lua26
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',
}
}