summaryrefslogtreecommitdiff
path: root/test-beta/completion/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-01 01:34:21 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-01 01:34:21 +0800
commit15cf11aa55a061ffe7957d1f3d3fc4911ef70957 (patch)
tree7e4df20a7026ccfc2811a8d77385f55ed033ff67 /test-beta/completion/init.lua
parentc7362d4d82f42e29749ac89ae90ed6395e2d501b (diff)
downloadlua-language-server-15cf11aa55a061ffe7957d1f3d3fc4911ef70957.zip
支持自动完成 class 的 extends
Diffstat (limited to 'test-beta/completion/init.lua')
-rw-r--r--test-beta/completion/init.lua13
1 files changed, 10 insertions, 3 deletions
diff --git a/test-beta/completion/init.lua b/test-beta/completion/init.lua
index 965e5ac3..69a8e28e 100644
--- a/test-beta/completion/init.lua
+++ b/test-beta/completion/init.lua
@@ -1163,14 +1163,13 @@ TEST [[
]]
(EXISTS)
-do return end
TEST [[
---@cl$
]]
{
{
label = 'class',
- kind = define.CompletionItemKind.Keyword
+ kind = define.CompletionItemKind.Event
}
}
@@ -1183,12 +1182,20 @@ TEST [[
label = 'ZABC',
kind = define.CompletionItemKind.Class,
},
+}
+
+TEST [[
+---@class ZABC
+---@class ZBBC : $
+]]
+{
{
- label = 'ZBBC',
+ label = 'ZABC',
kind = define.CompletionItemKind.Class,
},
}
+do return end
TEST [[
---@class zabc
local abcd