summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-23 21:38:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-23 21:38:48 +0800
commit7c176eb6882abbe00b0a1285bbbb4ff2af897b13 (patch)
tree4d597c7227d2ca5f45863ffffec9ac238f54e04b /test/completion
parent7dc7385ba55bbab7be12f6de6263ddeb71257250 (diff)
downloadlua-language-server-7c176eb6882abbe00b0a1285bbbb4ff2af897b13.zip
cleanup
Diffstat (limited to 'test/completion')
-rw-r--r--test/completion/common.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua
index 00a3d56d..918b6458 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -2755,3 +2755,30 @@ f(1, {<??>})
kind = define.CompletionItemKind.Property,
}
}
+
+TEST [[
+xx@pcall<??>
+]]
+{
+ [1] = {
+ label = 'pcall',
+ kind = define.CompletionItemKind.Event,
+ textEdit = {
+ start = 2,
+ finish = 8,
+ newText = '',
+ },
+ additionalTextEdits = {
+ {
+ start = 0,
+ finish = 0,
+ newText = 'pcall(',
+ },
+ {
+ start = 2,
+ finish = 2,
+ newText = ')',
+ },
+ }
+ }
+}