summaryrefslogtreecommitdiff
path: root/script/core/hover/table.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/hover/table.lua')
-rw-r--r--script/core/hover/table.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/script/core/hover/table.lua b/script/core/hover/table.lua
index 9fd79a25..58e64951 100644
--- a/script/core/hover/table.lua
+++ b/script/core/hover/table.lua
@@ -31,9 +31,10 @@ local function getKey(src)
end
local function getFieldFull(src)
- local tp = vm.getInferType(src)
+ local value = guide.getObjectValue(src) or src
+ local tp = vm.getInferType(value, 0)
--local class = vm.getClass(src)
- local literal = vm.getInferLiteral(src)
+ local literal = vm.getInferLiteral(value)
if type(literal) == 'string' and #literal >= 50 then
literal = literal:sub(1, 47) .. '...'
end