diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-03-29 23:59:40 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-03-29 23:59:40 +0800 |
commit | baa04101dfe6ce82046ec53eb7b52cedb02876ba (patch) | |
tree | 53f7fc5e8e54648315b2b95b38644614929e62ea /script/core | |
parent | ed484ba5809ef58eccf04cba4861c54f1925f794 (diff) | |
download | lua-language-server-baa04101dfe6ce82046ec53eb7b52cedb02876ba.zip |
update
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/hover/label.lua | 4 |
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 |