summaryrefslogtreecommitdiff
path: root/test/completion/common.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-24 17:38:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-24 17:38:13 +0800
commit94c1a8c91132d2b4345e68eec7f9bfcafd7485d9 (patch)
treeeb988a23b85d54a625148aba2d2967fa504de593 /test/completion/common.lua
parent9143322ddf72876f3c89349e37a62cdf20cf3b65 (diff)
downloadlua-language-server-94c1a8c91132d2b4345e68eec7f9bfcafd7485d9.zip
postfix add `insert`, `remove`, `concat`
Diffstat (limited to 'test/completion/common.lua')
-rw-r--r--test/completion/common.lua22
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++<??>
]]
{