From ac3235f4e9b800b0726a2e90555b109d5b58abfb 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, 15 Jul 2022 17:11:11 +0800 Subject: fix hover --- test/crossfile/hover.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'test/crossfile') diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua index 3c62b8f8..84276a27 100644 --- a/test/crossfile/hover.lua +++ b/test/crossfile/hover.lua @@ -1360,3 +1360,25 @@ local n: unknown --- [here](command:xxxxx)]] } + +TEST { + { + path = 'a.lua', + content = [[ + ---@class A + ---@field x number # comments + + ---@type A + local t + + print(t.) + ]] + }, + hover = [[ +```lua +(field) A.x: number +``` + +--- + comments]] +} -- cgit v1.2.3