summaryrefslogtreecommitdiff
path: root/script/core/hover/table.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-27 11:46:05 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-27 11:46:05 +0800
commit3715635806ae4680a81746d46e3714a4d06b0f5d (patch)
treee155634e77cfcf32bb1a56ec11b8f86a14581bc8 /script/core/hover/table.lua
parentd559737fc37d2ab99a030dbe33d3190315391859 (diff)
downloadlua-language-server-3715635806ae4680a81746d46e3714a4d06b0f5d.zip
performance optimization
Diffstat (limited to 'script/core/hover/table.lua')
-rw-r--r--script/core/hover/table.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/hover/table.lua b/script/core/hover/table.lua
index 58e64951..2ef26959 100644
--- a/script/core/hover/table.lua
+++ b/script/core/hover/table.lua
@@ -211,7 +211,7 @@ return function (source)
local clock = os.clock()
local timeUp
local mark = {}
- local fields = vm.getFields(source, 0)
+ local fields = vm.getDefFields(source, 0)
local keyCount = 0
local reachMax
for _, src in ipairs(fields) do