diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-08-23 11:41:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-08-23 11:41:41 +0800 |
commit | fdab3eaed0f5e3e85252d5126e1f1927b633c80d (patch) | |
tree | ec5fd69b3e6c0c535bbc77780c34711fc9e8301b /script | |
parent | 95ea163397963b52278b9eb70f2adfebe5490014 (diff) | |
download | lua-language-server-fdab3eaed0f5e3e85252d5126e1f1927b633c80d.zip |
resolve #645 only search first file by `require`
Diffstat (limited to 'script')
-rw-r--r-- | script/core/searcher.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua index e75293f1..108a9c37 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -753,6 +753,7 @@ function m.searchRefsByID(status, suri, expect, mode) local ruri = uris[i] if uri ~= ruri then searchID(ruri, 'mainreturn', field, uri) + break end end end |