summaryrefslogtreecommitdiff
path: root/script/core/searcher.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-24 16:13:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-24 16:13:56 +0800
commit589d2fbcb28b2bbac9b287e77dba773ad8119a61 (patch)
tree8c9b799a721bdb27a5491cc0a39cf2b0c24edc10 /script/core/searcher.lua
parent8164480e7dad67d62ac9a4346fa2f149addbc573 (diff)
downloadlua-language-server-589d2fbcb28b2bbac9b287e77dba773ad8119a61.zip
fix
Diffstat (limited to 'script/core/searcher.lua')
-rw-r--r--script/core/searcher.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua
index eaf30899..c97237d0 100644
--- a/script/core/searcher.lua
+++ b/script/core/searcher.lua
@@ -366,7 +366,7 @@ function m.searchRefsByID(status, uri, expect, mode)
end
local function checkBackward(id, node, field)
- if mode ~= 'ref' and not field then
+ if mode ~= 'ref' and not field or ignoredIDs[id] then
return
end
for _, backwardID in ipairs(node.backward) do