summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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++<??>
]]
{