diff options
Diffstat (limited to 'server/test/completion')
-rw-r--r-- | server/test/completion/init.lua | 46 |
1 files changed, 45 insertions, 1 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index 60e197bc..aa310d30 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -850,7 +850,7 @@ end ]] { { - label = '(a, b, c)', + label = 'a, b, c', kind = CompletionItemKind.Snippet, insertText = [[ a any @@ -878,6 +878,50 @@ function f(x$) ]] { { + label = 'xyz, xxx', + kind = CompletionItemKind.Snippet, + }, + { + label = 'xyz', + kind = CompletionItemKind.Interface, + }, + { + label = 'xxx', + kind = CompletionItemKind.Interface, + }, +} + +TEST [[ +---@param xyz Class +---@param xxx Class +function f($ +]] +{ + { + label = 'xyz, xxx', + kind = CompletionItemKind.Snippet, + }, + { + label = 'xyz', + kind = CompletionItemKind.Interface, + }, + { + label = 'xxx', + kind = CompletionItemKind.Interface, + }, +} + +TEST [[ +---@param xyz Class +---@param xxx Class +function f($) +]] +{ + { + label = 'xyz, xxx', + kind = CompletionItemKind.Snippet, + }, + { label = 'xyz', kind = CompletionItemKind.Interface, }, |