diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-16 19:52:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-16 19:52:50 +0800 |
commit | 040d3f7b32c03853dc38c9ad08715024ac8586b6 (patch) | |
tree | 5ef95f2fd024758eb3e1c7b7d8bc04f2de15172e /script/core/searcher.lua | |
parent | 002508f804128965cc0a4364336a6217cccd3c3b (diff) | |
download | lua-language-server-040d3f7b32c03853dc38c9ad08715024ac8586b6.zip |
fix
Diffstat (limited to 'script/core/searcher.lua')
-rw-r--r-- | script/core/searcher.lua | 3 |
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) |