diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-17 21:55:21 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-17 21:55:21 +0800 |
commit | 0b506b224b567da58b739c6bfd29a5db47c089b3 (patch) | |
tree | 6da4213bc7f7fd8f329bdd07b78a6b6e377c310f /test-beta/completion/init.lua | |
parent | 3da564e159b2a1051acb364ad65ae7d7745e1013 (diff) | |
download | lua-language-server-0b506b224b567da58b739c6bfd29a5db47c089b3.zip |
支持变形为 _ENV['xxx'] 的形式
Diffstat (limited to 'test-beta/completion/init.lua')
-rw-r--r-- | test-beta/completion/init.lua | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/test-beta/completion/init.lua b/test-beta/completion/init.lua index d26ec2b6..6e350ed6 100644 --- a/test-beta/completion/init.lua +++ b/test-beta/completion/init.lua @@ -1110,8 +1110,6 @@ t['$'] } } --- TODO -do return end TEST [[ _ENV['z.b.c'] = {} @@ -1121,19 +1119,15 @@ z$ { label = 'z.b.c', kind = CompletionItemKind.Field, - detail = EXISTS, textEdit = { - start = 22, + start = 21, finish = 21, newText = '_ENV["z.b.c"]', }, - additionalTextEdits = { - { - start = 21, - finish = 21, - newText = '', - } - } + }, + { + label = 'z', + kind = CompletionItemKind.Text, } } |