summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-03-29 23:59:40 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-03-29 23:59:40 +0800
commitbaa04101dfe6ce82046ec53eb7b52cedb02876ba (patch)
tree53f7fc5e8e54648315b2b95b38644614929e62ea /script/core
parented484ba5809ef58eccf04cba4861c54f1925f794 (diff)
downloadlua-language-server-baa04101dfe6ce82046ec53eb7b52cedb02876ba.zip
update
Diffstat (limited to 'script/core')
-rw-r--r--script/core/hover/label.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/hover/label.lua b/script/core/hover/label.lua
index 37d4c730..01dd1143 100644
--- a/script/core/hover/label.lua
+++ b/script/core/hover/label.lua
@@ -48,8 +48,7 @@ local function asValue(source, title)
local cont
if not infer.hasType(source, 'string')
and not type:find('%[%]$') then
- if #vm.getRefs(source, '*') > 0
- or infer.hasType(source, 'table') then
+ if infer.hasType(source, 'table') then
cont = buildTable(source)
end
end
@@ -62,6 +61,7 @@ local function asValue(source, title)
if cont
and ( type == 'table'
or type == 'any'
+ or type == 'unknown'
or type == 'nil') then
type = nil
end