diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-10-30 15:32:11 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-10-30 15:32:11 +0800 |
commit | aca5d65499c3af0fe0d73cd7ce69e7de2248b1e8 (patch) | |
tree | 19c2e6d7cb9e699aaa3e1438c4e12c44d430dbe3 /script-beta/core/hover/label.lua | |
parent | 705e882703b837e44b1c6689d1fd90c7778f2c0f (diff) | |
download | lua-language-server-aca5d65499c3af0fe0d73cd7ce69e7de2248b1e8.zip |
优化 table 的hover性能
Diffstat (limited to 'script-beta/core/hover/label.lua')
-rw-r--r-- | script-beta/core/hover/label.lua | 8 |
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) |