summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-09 00:14:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-09 00:14:15 +0800
commit348aca7e6ad18acea7526daf847a9b03c5bbf807 (patch)
tree3ea9d6a0835772a638010b04e7ff87b9b071f2a8 /test-beta
parent386f9ad25cd58dd7297b2725c9bd2bddc59fa936 (diff)
downloadlua-language-server-348aca7e6ad18acea7526daf847a9b03c5bbf807.zip
暂存
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/completion/init.lua39
1 files changed, 15 insertions, 24 deletions
diff --git a/test-beta/completion/init.lua b/test-beta/completion/init.lua
index b6c413af..add0125c 100644
--- a/test-beta/completion/init.lua
+++ b/test-beta/completion/init.lua
@@ -864,7 +864,6 @@ t.$
{
label = '__index',
kind = CompletionItemKind.Field,
- detail = EXISTS,
}
}
@@ -876,51 +875,46 @@ else$
]]
{
{
+ label = 'else',
+ kind = CompletionItemKind.Keyword,
+ },
+ {
+ label = 'elseif',
+ kind = CompletionItemKind.Keyword,
+ },
+ {
+ label = 'elseif .. then',
+ kind = CompletionItemKind.Snippet,
+ },
+ {
label = 'elseaaa',
kind = CompletionItemKind.Variable,
},
{
label = 'ELSE',
kind = CompletionItemKind.Enum,
- detail = EXISTS,
},
{
label = 'select',
kind = CompletionItemKind.Function,
- detail = EXISTS,
},
{
label = 'select()',
kind = CompletionItemKind.Snippet,
- detail = EXISTS,
- insertText = EXISTS,
},
{
label = 'setmetatable',
kind = CompletionItemKind.Function,
- detail = EXISTS,
},
{
label = 'setmetatable()',
kind = CompletionItemKind.Snippet,
- detail = EXISTS,
- insertText = EXISTS,
- },
- {
- label = 'else',
- kind = CompletionItemKind.Keyword,
},
- {
- label = 'elseif',
- kind = CompletionItemKind.Keyword,
- },
- {
- label = 'elseif .. then',
- kind = CompletionItemKind.Snippet,
- insertText = EXISTS,
- }
}
+-- TODO
+do return end
+
TEST [[
local xpcal
xpcal$
@@ -933,12 +927,10 @@ xpcal$
{
label = 'xpcall',
kind = CompletionItemKind.Function,
- detail = EXISTS,
},
{
label = 'xpcall()',
kind = CompletionItemKind.Snippet,
- detail = EXISTS,
insertText = EXISTS,
},
}
@@ -953,7 +945,6 @@ mt:f$
{
label = 'f',
kind = CompletionItemKind.Method,
- detail = EXISTS,
},
{
label = 'f()',