diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-08-15 18:57:58 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-08-15 18:57:58 +0800 |
commit | 674892abc53ad6752326135c8aaf60073f80b632 (patch) | |
tree | c9376e1f76975834ad49f785f7f31b33e7661059 /script-beta/vm | |
parent | 67eae45b182fc8a7302970d71af4e76eafab0a2e (diff) | |
download | lua-language-server-674892abc53ad6752326135c8aaf60073f80b632.zip |
先保证自动完成的速度
Diffstat (limited to 'script-beta/vm')
-rw-r--r-- | script-beta/vm/eachRef.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script-beta/vm/eachRef.lua b/script-beta/vm/eachRef.lua index 65ce4d05..d372b03b 100644 --- a/script-beta/vm/eachRef.lua +++ b/script-beta/vm/eachRef.lua @@ -2,7 +2,7 @@ local vm = require 'vm.vm' local guide = require 'parser.guide' local util = require 'utility' -local function eachRef(source, results) +local function getRefs(source, results) results = results or {} local lock = vm.lock('eachDef', source) if not lock then @@ -22,8 +22,8 @@ local function eachRef(source, results) end function vm.getRefs(source) - local cache = vm.getCache('eachRef')[source] or eachRef(source) - vm.getCache('eachDef')[source] = cache + local cache = vm.getCache('eachRef')[source] or getRefs(source) + vm.getCache('eachRef')[source] = cache return cache end |