summaryrefslogtreecommitdiff
path: root/script/core/searcher.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-28 16:35:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-28 16:35:28 +0800
commit845d1be1c9f3f74ac0674d4bb7d0a37ca83a3a65 (patch)
treef6392ed49844a7ae556a0f3f37d3b1d00e5de84f /script/core/searcher.lua
parent6772d374dae53b5d43ea0354635fd37f26618d6f (diff)
downloadlua-language-server-845d1be1c9f3f74ac0674d4bb7d0a37ca83a3a65.zip
improve
Diffstat (limited to 'script/core/searcher.lua')
-rw-r--r--script/core/searcher.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua
index b537ae90..c5e22619 100644
--- a/script/core/searcher.lua
+++ b/script/core/searcher.lua
@@ -553,7 +553,11 @@ function m.searchRefsByID(status, uri, expect, mode)
return
end
local tid = id .. (field or '')
- for _, guri in collector.each(id) do
+ local sid = id
+ if ignoredIDs[id] then
+ sid = 'def:' .. sid
+ end
+ for _, guri in collector.each(sid) do
if not files.eq(uri, guri) then
crossSearch(status, guri, tid, mode, uri)
end