From a57f43a4a892f591bf2a6974a07be6c4b89dd161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 4 Nov 2020 14:36:59 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20hover=20=E7=9A=84=E4=B8=80?= =?UTF-8?q?=E4=B8=AAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/core/hover/description.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'script-beta/core/hover/description.lua') diff --git a/script-beta/core/hover/description.lua b/script-beta/core/hover/description.lua index ea2486a1..dfb260b0 100644 --- a/script-beta/core/hover/description.lua +++ b/script-beta/core/hover/description.lua @@ -181,6 +181,10 @@ local function tryLibrary(source) end local function tryDocComment(source) + if source.type == 'field' + or source.type == 'method' then + source = source.parent + end if not source.bindDocs then return end -- cgit v1.2.3