From 792afd666c6c43bdbd7e82ec8596755f579dc9ba 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, 16 Jul 2021 17:13:05 +0800 Subject: completion: supports `t:$` as `doc.function` --- test/completion/init.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test') diff --git a/test/completion/init.lua b/test/completion/init.lua index 1ed82b2a..3dd9b639 100644 --- a/test/completion/init.lua +++ b/test/completion/init.lua @@ -2723,3 +2723,17 @@ f('$') }, }, } + +TEST [[ +---@class Class +---@field on fun() +local c + +c:$ +]] +{ + { + label = 'on', + kind = define.CompletionItemKind.Field, + } +} -- cgit v1.2.3