diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-24 17:38:13 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-24 17:38:13 +0800 |
commit | 94c1a8c91132d2b4345e68eec7f9bfcafd7485d9 (patch) | |
tree | eb988a23b85d54a625148aba2d2967fa504de593 /test/completion/common.lua | |
parent | 9143322ddf72876f3c89349e37a62cdf20cf3b65 (diff) | |
download | lua-language-server-94c1a8c91132d2b4345e68eec7f9bfcafd7485d9.zip |
postfix add `insert`, `remove`, `concat`
Diffstat (limited to 'test/completion/common.lua')
-rw-r--r-- | test/completion/common.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua index 2bfc69a2..60a5f2ac 100644 --- a/test/completion/common.lua +++ b/test/completion/common.lua @@ -2955,6 +2955,28 @@ xx:yy@method<??> } TEST [[ +xx@insert<??> +]] +{ + [1] = { + label = 'insert', + kind = define.CompletionItemKind.Event, + textEdit = { + start = 3, + finish = 9, + newText = 'table.insert(xx, $0)', + }, + additionalTextEdits = { + { + start = 0, + finish = 3, + newText = '' + } + } + }, +} + +TEST [[ xx++<??> ]] { |