diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-15 16:07:00 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-15 16:07:00 +0800 |
commit | b4db281f699eac34b5e6f6b00bd6dcc6351d5f7e (patch) | |
tree | d5a12dd79efe7accd436833ac40738f9c792a387 /script/core/searcher.lua | |
parent | 3c563b2efa96407f61ef117102b9b23896a887fc (diff) | |
download | lua-language-server-b4db281f699eac34b5e6f6b00bd6dcc6351d5f7e.zip |
revert wrong optimization
Diffstat (limited to 'script/core/searcher.lua')
-rw-r--r-- | script/core/searcher.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua index c5180a54..3c210b1b 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -850,7 +850,6 @@ function m.searchRefsByID(status, suri, expect, mode) local function searchNode(uri, id, field) local noders = nodersMap[uri] local call = noders.call[id] - local global = isGlobalID(id) callStack[#callStack+1] = call if field == nil and not ignoredSources[id] then @@ -865,8 +864,8 @@ function m.searchRefsByID(status, suri, expect, mode) checkRequire(uri, requireName, field) end - local elock = global and elockMap['@global'] or elockMap[uri] - local ecall = global and ecallMap['@global'] or ecallMap[uri] + local elock = elockMap[uri] + local ecall = ecallMap[uri] if lockExpanding(elock, ecall, id, field) then if noders.forward[id] then |