diff options
Diffstat (limited to 'script-beta/core')
-rw-r--r-- | script-beta/core/hover/description.lua | 4 | ||||
-rw-r--r-- | script-beta/core/hover/init.lua | 2 |
2 files changed, 2 insertions, 4 deletions
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 |