diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-05-12 20:58:33 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-05-12 20:58:33 +0800 |
commit | 49b0244734a579036c1d3f318ce435a94974c038 (patch) | |
tree | 936e78c91cc824cb6fc00e4b694f96dcd13295db /script/core/searcher.lua | |
parent | 813da76cc7f899d7a0eca5afb0f224cd64eaaab0 (diff) | |
download | lua-language-server-49b0244734a579036c1d3f318ce435a94974c038.zip |
resolve pcall
Diffstat (limited to 'script/core/searcher.lua')
-rw-r--r-- | script/core/searcher.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua index fc1c08d1..c869f456 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -95,6 +95,11 @@ function m.pushResult(status, mode, source) results[#results+1] = source end end + if parent.type == 'return' then + if linker.getID(source) ~= status.id then + results[#results+1] = source + end + end elseif mode == 'field' then end end |