diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-08 16:37:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-08 16:37:30 +0800 |
commit | c2128751fc2276e1b733dc272f678b2953b38b94 (patch) | |
tree | 1a50e95a42ff168f22d3766efcc0f5ec1cd0e514 /server-beta | |
parent | 6b222a0a14135e6f39eb9e80f3c2bf879811ca2c (diff) | |
download | lua-language-server-c2128751fc2276e1b733dc272f678b2953b38b94.zip |
优化性能
Diffstat (limited to 'server-beta')
-rw-r--r-- | server-beta/src/searcher/eachRef.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server-beta/src/searcher/eachRef.lua b/server-beta/src/searcher/eachRef.lua index 219dd68c..b59143ad 100644 --- a/server-beta/src/searcher/eachRef.lua +++ b/server-beta/src/searcher/eachRef.lua @@ -389,6 +389,10 @@ function searcher.eachRef(source, callback) end) unlock() for i = 1, #cache do + local src = cache[i].source + searcher.cache.eachRef[src] = cache + end + for i = 1, #cache do callback(cache[i]) end end |