diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-08 23:19:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-08 23:19:02 +0800 |
commit | 0ecd76a8ac07687e7c8a79ed2fc34a5794cc1c8f (patch) | |
tree | 06ae315dca91b532ca722d4f0319cf1437229858 /test-beta/completion/init.lua | |
parent | 6ee179f6fbf2d9d89c07fa408c9218eb55422b39 (diff) | |
download | lua-language-server-0ecd76a8ac07687e7c8a79ed2fc34a5794cc1c8f.zip |
自增支持
Diffstat (limited to 'test-beta/completion/init.lua')
-rw-r--r-- | test-beta/completion/init.lua | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/test-beta/completion/init.lua b/test-beta/completion/init.lua index a5f4868e..3250b838 100644 --- a/test-beta/completion/init.lua +++ b/test-beta/completion/init.lua @@ -596,12 +596,27 @@ self.results.list[#$] ]] { { - label = 'self.results.list+1', + label = '#self.results.list+1', kind = CompletionItemKind.Snippet, textEdit = { - start = 20, + start = 19, finish = 20, - newText = 'self.results.list+1] = ', + newText = '#self.results.list+1] = ', + }, + }, +} + +TEST [[ +self.results.list[#$] = 1 +]] +{ + { + label = '#self.results.list+1', + kind = CompletionItemKind.Snippet, + textEdit = { + start = 19, + finish = 20, + newText = '#self.results.list+1]', }, }, } |