From a8c95b64d7e8a8481cbe961b8b872ef0710d618f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 7 May 2021 16:37:29 +0800 Subject: fix call snip --- test/completion/init.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/completion') diff --git a/test/completion/init.lua b/test/completion/init.lua index b2cac99d..89772853 100644 --- a/test/completion/init.lua +++ b/test/completion/init.lua @@ -2479,6 +2479,7 @@ TEST [[ } } +Cared['insertText'] = true TEST [[ ---@overload fun(a: any, b: any) local function zzzz(a) end @@ -2488,17 +2489,21 @@ zzzz$ { label = 'zzzz(a)', kind = define.CompletionItemKind.Function, + insertText = 'zzzz', }, { label = 'zzzz(a)', kind = define.CompletionItemKind.Snippet, + insertText = 'zzzz(${1:a: any})', }, { label = 'zzzz(a, b)', kind = define.CompletionItemKind.Function, + insertText = 'zzzz', }, { label = 'zzzz(a, b)', kind = define.CompletionItemKind.Snippet, + insertText = 'zzzz(${1:a: any}, ${2:b: any})', }, } -- cgit v1.2.3