summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-16 15:32:36 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-16 15:32:36 +0800
commite5bcfb04cd32045aaea778752350ea6ed0725953 (patch)
tree2366317b25433110819c8a63a72f7f1ee5228e53 /server/test
parenteb57da9aa226890bf40d6187811227f5150fb1b1 (diff)
downloadlua-language-server-e5bcfb04cd32045aaea778752350ea6ed0725953.zip
自动完成也能使用所有符号
Diffstat (limited to 'server/test')
-rw-r--r--server/test/completion/init.lua26
1 files changed, 23 insertions, 3 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index f4b459a0..65fd17e5 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -112,7 +112,11 @@ local zabcde
{
label = 'zabcdefg',
kind = CompletionItemKind.Variable,
- }
+ },
+ {
+ label = 'zabcde',
+ kind = CompletionItemKind.Text,
+ },
}
TEST [[
@@ -315,7 +319,11 @@ print(fff)
{
label = 'function',
kind = CompletionItemKind.Keyword,
- }
+ },
+ {
+ label = 'faa',
+ kind = CompletionItemKind.Text,
+ },
}
TEST [[
@@ -494,7 +502,6 @@ local xxxx
local XXXX
xxxx@
]]
-
{
{
label = 'xxxx',
@@ -505,3 +512,16 @@ xxxx@
kind = CompletionItemKind.Variable,
}
}
+
+TEST [[
+local t = {
+ xxxxx = 1,
+}
+xx@
+]]
+{
+ {
+ label = 'xxxxx',
+ kind = CompletionItemKind.Text,
+ },
+}