summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-24 15:37:33 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-24 15:37:33 +0800
commit60d03b0fe64ed14c0452970bb026da28f1f38429 (patch)
tree41bcffc1317931379ef0951882200f129765916a /script/core
parent21f856de7216b8b66953a61ce229e156368ec70b (diff)
downloadlua-language-server-60d03b0fe64ed14c0452970bb026da28f1f38429.zip
update
Diffstat (limited to 'script/core')
-rw-r--r--script/core/searcher.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua
index 8eed5ccd..eaf30899 100644
--- a/script/core/searcher.lua
+++ b/script/core/searcher.lua
@@ -480,8 +480,8 @@ function m.searchRefsByID(status, uri, expect, mode)
searchFunction(expect)
--清除来自泛型的临时对象
- for id, closure in pairs(closureCache) do
- noder.removeID(root, id)
+ for _, closure in pairs(closureCache) do
+ noder.removeID(root, noder.getID(closure))
if closure then
for _, value in ipairs(closure.values) do
noder.removeID(root, noder.getID(value))