diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-04-21 22:03:46 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-04-21 22:03:46 +0800 |
commit | 7dd6a5440cb40082f74a865c79d06b2ab8a9c7c1 (patch) | |
tree | bda76033195d933d6144a4b8d09475c2341afcb3 /script/core/searcher.lua | |
parent | b0c3c3047361c63c7f0c0587ec98964c6a7c4a98 (diff) | |
download | lua-language-server-7dd6a5440cb40082f74a865c79d06b2ab8a9c7c1.zip |
split
Diffstat (limited to 'script/core/searcher.lua')
-rw-r--r-- | script/core/searcher.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua index c3d61199..f99b3a4b 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -118,11 +118,10 @@ function m.searchRefsByID(status, uri, expect, mode) end local function searchID(id, field) - search(id, field) if field then id = id .. field - search(id) end + search(id) end local function getCallSelectByReturnIndex(func, index) @@ -200,7 +199,7 @@ function m.searchRefsByID(status, uri, expect, mode) stackCount = stackCount + 1 local links = linker.getLinksByID(root, id) if links then - if stackCount >= 20 then + if stackCount >= 100 then error('stack overflow') end for _, eachLink in ipairs(links) do |