summaryrefslogtreecommitdiff
path: root/script/core/searcher.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-23 19:34:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-23 19:34:57 +0800
commitd2667b5943f41ec16b5e54a4d64c497bef149b59 (patch)
tree21a9a2686304908b8e5c48014f217279723ac81e /script/core/searcher.lua
parentad72c1fdc4e8d1fb9afca2dbe10e3c425ead4786 (diff)
downloadlua-language-server-d2667b5943f41ec16b5e54a4d64c497bef149b59.zip
cleanup
Diffstat (limited to 'script/core/searcher.lua')
-rw-r--r--script/core/searcher.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua
index 87769de4..ef1090e9 100644
--- a/script/core/searcher.lua
+++ b/script/core/searcher.lua
@@ -539,7 +539,7 @@ function m.searchRefsByID(status, uri, expect, mode)
return
end
local tid = id .. (field or '')
- for _, guri in collector.each('def:' .. id) do
+ for _, guri in collector.each(id) do
if not files.eq(uri, guri) then
crossSearch(status, guri, tid, mode, uri)
end
@@ -846,6 +846,8 @@ end
---@class guide.status
---搜索结果
---@field results parser.guide.object[]
+---@field rmark table
+---@field id string
---创建搜索状态
---@param mode guide.searchmode