From e2cd0ad08fdb756f251e3def4a4277d22ba54728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 12 Nov 2020 19:52:20 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=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 --- test-beta/completion/init.lua | 53 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 43 insertions(+), 10 deletions(-) (limited to 'test-beta/completion') diff --git a/test-beta/completion/init.lua b/test-beta/completion/init.lua index 20fd01cf..0d1db3fe 100644 --- a/test-beta/completion/init.lua +++ b/test-beta/completion/init.lua @@ -1296,9 +1296,38 @@ end label = 'a, b, c', kind = define.CompletionItemKind.Snippet, insertText = [[ -a any ----@param b any ----@param c any]] +a ${1:any} +---@param b ${2:any} +---@param c ${0:any}]] + }, + { + label = 'a', + kind = define.CompletionItemKind.Interface, + }, + { + label = 'b', + kind = define.CompletionItemKind.Interface, + }, + { + label = 'c', + kind = define.CompletionItemKind.Interface, + }, +} + +TEST [[ +---@param $ +function f(a, b, c) end + +function f2(a) end +]] +{ + { + label = 'a, b, c', + kind = define.CompletionItemKind.Snippet, + insertText = [[ +a ${1:any} +---@param b ${2:any} +---@param c ${0:any}]] }, { label = 'a', @@ -1338,9 +1367,9 @@ end label = 'a, b, c', kind = define.CompletionItemKind.Snippet, insertText = [[ -a any ----@param b any ----@param c any]] +a ${1:any} +---@param b ${2:any} +---@param c ${0:any}]] }, { label = 'a', @@ -1366,9 +1395,9 @@ end label = 'a, b, c', kind = define.CompletionItemKind.Snippet, insertText = [[ -a any ----@param b any ----@param c any]] +a ${1:any} +---@param b ${2:any} +---@param c ${0:any}]] }, { label = 'a', @@ -1464,7 +1493,11 @@ end { label = 'return', kind = define.CompletionItemKind.Event, - } + }, + { + label = 'deprecated', + kind = define.CompletionItemKind.Event, + }, } TEST [[ -- cgit v1.2.3