summaryrefslogtreecommitdiff
path: root/script/core/searcher.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-16 19:52:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-16 19:52:50 +0800
commit040d3f7b32c03853dc38c9ad08715024ac8586b6 (patch)
tree5ef95f2fd024758eb3e1c7b7d8bc04f2de15172e /script/core/searcher.lua
parent002508f804128965cc0a4364336a6217cccd3c3b (diff)
downloadlua-language-server-040d3f7b32c03853dc38c9ad08715024ac8586b6.zip
fix
Diffstat (limited to 'script/core/searcher.lua')
-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 4ade6413..ad51a412 100644
--- a/script/core/searcher.lua
+++ b/script/core/searcher.lua
@@ -455,6 +455,9 @@ function m.searchRefsByID(status, uri, expect, mode)
local function checkRequire(requireName, field)
local tid = 'mainreturn' .. (field or '')
local uris = ws.findUrisByRequirePath(requireName)
+ if FOOTPRINT then
+ status.footprint[#status.footprint+1] = ('require %q:\n%s'):format(requireName, table.concat(uris, '\n'))
+ end
for _, ruri in ipairs(uris) do
if not files.eq(uri, ruri) then
crossSearch(status, ruri, tid, mode, uri)