diff options
author | sumneko <sumneko@hotmail.com> | 2021-12-02 22:16:18 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2021-12-02 22:16:18 +0800 |
commit | c47baf932309a05673b7931fdf6a1be207fb7bc4 (patch) | |
tree | 2869d38a1472045ee9075083d14ca31ae6b35dd1 /test/completion | |
parent | b6da7274e8fa773183146982f8864247bb33a214 (diff) | |
parent | cb2042160865589b5534a6bf0b6c366ae4ab1d99 (diff) | |
download | lua-language-server-c47baf932309a05673b7931fdf6a1be207fb7bc4.zip |
Merge remote-tracking branch 'origin/master' into multi-workspace
Diffstat (limited to 'test/completion')
-rw-r--r-- | test/completion/common.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua index fad0df8e..94b55514 100644 --- a/test/completion/common.lua +++ b/test/completion/common.lua @@ -3013,3 +3013,27 @@ xx++<??> } }, } + +TEST [[ +fff(function () + xx@xpcall<??> +end) +]] +{ + [1] = { + label = 'xpcall', + kind = define.CompletionItemKind.Event, + textEdit = { + start = 10007, + finish = 10013, + newText = 'xpcall(xx, ${1:debug.traceback}$2)$0', + }, + additionalTextEdits = { + { + start = 10004, + finish = 10007, + newText = '', + } + } + }, +} |