summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-18 20:09:40 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-18 20:09:40 +0800
commit16c69314cfba1d8bf9b4c44747038f0ef96a126f (patch)
tree85ee1e3c0c91193646ee943820afd20599325d29 /script/core
parenta23eab388cd3d257a36edd1a784dc17e62d79e8a (diff)
downloadlua-language-server-16c69314cfba1d8bf9b4c44747038f0ef96a126f.zip
improve
Diffstat (limited to 'script/core')
-rw-r--r--script/core/searcher.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua
index ee8af71a..ffb54c07 100644
--- a/script/core/searcher.lua
+++ b/script/core/searcher.lua
@@ -424,6 +424,9 @@ function m.searchRefsByID(status, uri, expect, mode)
if mode ~= 'ref' and mode ~= 'field' and mode ~= 'allref' and not field then
return
end
+ if ignoredIDs[id] then
+ return
+ end
noder.eachBackward(node, function (backwardID, tag)
if tag == 'deep' and mode ~= 'allref' then
return