summaryrefslogtreecommitdiff
path: root/script-beta/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-19 16:50:08 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-19 16:50:08 +0800
commit719c434de917b7ee77173a2a265ed31581f61bb9 (patch)
treed81fa38169cd3544302507e1894d65992e4d996f /script-beta/core
parentb841b2668dd7d36cbf42c3f261e69e2a70358c6b (diff)
downloadlua-language-server-719c434de917b7ee77173a2a265ed31581f61bb9.zip
优化性能
Diffstat (limited to 'script-beta/core')
-rw-r--r--script-beta/core/completion.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script-beta/core/completion.lua b/script-beta/core/completion.lua
index e0bdfd64..8b866afd 100644
--- a/script-beta/core/completion.lua
+++ b/script-beta/core/completion.lua
@@ -442,8 +442,10 @@ local function checkFieldOfRefs(refs, ast, word, start, offset, parent, oop, res
end
local last = fields[name]
if not last then
+ -- TODO
if guide.isGlobal(src) then
- fields[name] = vm.getGlobalSets(key)[1] or src
+ --fields[name] = vm.getGlobalSets(key)[1] or src
+ fields[name] = src
else
fields[name] = src
end