summaryrefslogtreecommitdiff
path: root/script-beta/core/hover/label.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-10-30 15:32:11 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-10-30 15:32:11 +0800
commitaca5d65499c3af0fe0d73cd7ce69e7de2248b1e8 (patch)
tree19c2e6d7cb9e699aaa3e1438c4e12c44d430dbe3 /script-beta/core/hover/label.lua
parent705e882703b837e44b1c6689d1fd90c7778f2c0f (diff)
downloadlua-language-server-aca5d65499c3af0fe0d73cd7ce69e7de2248b1e8.zip
优化 table 的hover性能
Diffstat (limited to 'script-beta/core/hover/label.lua')
-rw-r--r--script-beta/core/hover/label.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/script-beta/core/hover/label.lua b/script-beta/core/hover/label.lua
index 2c0bdcd1..be73eec2 100644
--- a/script-beta/core/hover/label.lua
+++ b/script-beta/core/hover/label.lua
@@ -31,10 +31,10 @@ end
local function asValue(source, title)
local name = buildName(source)
- local infers = vm.getInfers(source)
- local type = vm.getInferType(source)
- local class = vm.getClass(source)
- local literal = vm.getInferLiteral(source)
+ local infers = vm.getInfers(source, 'deep')
+ local type = vm.getInferType(source, 'deep')
+ local class = vm.getClass(source, 'deep')
+ local literal = vm.getInferLiteral(source, 'deep')
local cont
if vm.hasInferType(source, 'table', 'deep') then
cont = buildTable(source)