diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-23 21:38:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-23 21:38:48 +0800 |
commit | 7c176eb6882abbe00b0a1285bbbb4ff2af897b13 (patch) | |
tree | 4d597c7227d2ca5f45863ffffec9ac238f54e04b /test/completion/common.lua | |
parent | 7dc7385ba55bbab7be12f6de6263ddeb71257250 (diff) | |
download | lua-language-server-7c176eb6882abbe00b0a1285bbbb4ff2af897b13.zip |
cleanup
Diffstat (limited to 'test/completion/common.lua')
-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 = ')', + }, + } + } +} |