From db4b65088600f08d254bb96779a4855752f2216b 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, 18 Nov 2020 13:17:47 +0800 Subject: =?UTF-8?q?=E4=BB=8E=E5=AE=9A=E4=B9=89=E9=87=8C=E6=89=BE=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/core/hover/description.lua | 4 ---- script-beta/core/hover/init.lua | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'script-beta/core/hover') diff --git a/script-beta/core/hover/description.lua b/script-beta/core/hover/description.lua index 39cfb07b..98b5c6ea 100644 --- a/script-beta/core/hover/description.lua +++ b/script-beta/core/hover/description.lua @@ -252,10 +252,6 @@ local function getBindEnums(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 diff --git a/script-beta/core/hover/init.lua b/script-beta/core/hover/init.lua index 6436169a..92197ab6 100644 --- a/script-beta/core/hover/init.lua +++ b/script-beta/core/hover/init.lua @@ -28,11 +28,13 @@ local function getHoverAsFunction(source) protos = protos + 1 end end + desc = desc or getDesc(value) elseif value.type == 'table' or value.type == 'boolean' or value.type == 'string' or value.type == 'number' then other = other + 1 + desc = desc or getDesc(value) end end -- cgit v1.2.3