diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-04-08 11:36:34 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-04-08 11:36:34 +0800 |
commit | b30fb29123c55052268e33d585c1b3bfbb91e5ce (patch) | |
tree | 8a14f7af1c82d514c26e7efa9a1de85288572bc2 /test | |
parent | 65cc77a8f6dfe7bfaac51cc6245f0de9efbac72a (diff) | |
download | lua-language-server-b30fb29123c55052268e33d585c1b3bfbb91e5ce.zip |
use textEdit when label has symbol
Diffstat (limited to 'test')
-rw-r--r-- | test/completion/init.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua index b07fda90..22103896 100644 --- a/test/completion/init.lua +++ b/test/completion/init.lua @@ -2524,3 +2524,20 @@ function api(t) end api({$}) ]] (EXISTS) + +TEST [[ +---@class AAA.BBB + +---@type AAA.$ +]] +{ + { + label = 'AAA.BBB', + kind = define.CompletionItemKind.Class, + textEdit = { + start = 29, + finish = 32, + newText = 'AAA.BBB', + }, + } +} |