diff options
Diffstat (limited to 'test/completion')
-rw-r--r-- | test/completion/common.lua | 27 |
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 = ')', + }, + } + } +} |