diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-08-17 19:02:01 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-08-17 19:02:01 +0800 |
commit | e8e5e00ff910bbbd7729d473198eff92e7581e64 (patch) | |
tree | bbc8adf49ed195219acb6df53dad783487889762 /script-beta/core/hover/label.lua | |
parent | 3e4411e10f8c0ebd10341450edd6c868866d04cb (diff) | |
download | lua-language-server-e8e5e00ff910bbbd7729d473198eff92e7581e64.zip |
优化性能
Diffstat (limited to 'script-beta/core/hover/label.lua')
-rw-r--r-- | script-beta/core/hover/label.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script-beta/core/hover/label.lua b/script-beta/core/hover/label.lua index 6b3d0988..6e5b284c 100644 --- a/script-beta/core/hover/label.lua +++ b/script-beta/core/hover/label.lua @@ -19,11 +19,11 @@ end local function asValue(source, title) local name = buildName(source) local infers = vm.getInfers(source) - local type = vm.getType(source) + local type = vm.getInferType(source) local class = vm.getClass(source) - local literal = vm.getLiteral(source) + local literal = vm.getInferLiteral(source) local cont - if vm.hasType(source, 'table') then + if vm.hasInferType(source, 'table') then cont = buildTable(source) end local pack = {} |