From f06ff4184d48f1f72a853d0d6652ae9c2cc6594d Mon Sep 17 00:00:00 2001 From: sumneko Date: Thu, 25 Apr 2019 17:12:06 +0800 Subject: =?UTF-8?q?param=E7=9A=84=E8=87=AA=E5=8A=A8=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/test/completion/init.lua | 37 ++++++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 7 deletions(-) (limited to 'server/test/completion') diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index 0857e8cb..340af415 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -818,11 +818,7 @@ local abcd { label = 'abc', kind = CompletionItemKind.Class, - }, - { - label = 'xxx', - kind = CompletionItemKind.Class, - }, + } } TEST [[ @@ -831,11 +827,38 @@ TEST [[ ]] { { - label = 'abb', + label = 'abc', kind = CompletionItemKind.Class, }, +} + +TEST [[ +---@class Class +---@param x C$ +]] +{ { - label = 'abc', + label = 'Class', kind = CompletionItemKind.Class, }, } + +TEST [[ +---@param $ +function f(a, b, c) +end +]] +{ + { + label = 'a', + kind = CompletionItemKind.Unit, + }, + { + label = 'b', + kind = CompletionItemKind.Unit, + }, + { + label = 'c', + kind = CompletionItemKind.Unit, + }, +} -- cgit v1.2.3