diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-01 01:34:21 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-01 01:34:21 +0800 |
commit | 15cf11aa55a061ffe7957d1f3d3fc4911ef70957 (patch) | |
tree | 7e4df20a7026ccfc2811a8d77385f55ed033ff67 /test-beta/completion/init.lua | |
parent | c7362d4d82f42e29749ac89ae90ed6395e2d501b (diff) | |
download | lua-language-server-15cf11aa55a061ffe7957d1f3d3fc4911ef70957.zip |
支持自动完成 class 的 extends
Diffstat (limited to 'test-beta/completion/init.lua')
-rw-r--r-- | test-beta/completion/init.lua | 13 |
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 |