diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-08-09 17:47:56 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-08-09 17:47:56 +0800 |
commit | acd37caafa2b4e9fa673327e54c5f010fa37641f (patch) | |
tree | 7e0ac2eaf7fc9bc5460e9ce1342639f5ace60bd6 /script/core | |
parent | 2ecc421ba6ed49b4e2a640c424eb7581ccbc6ecf (diff) | |
download | lua-language-server-acd37caafa2b4e9fa673327e54c5f010fa37641f.zip |
`FIX` completion: can not find global fields
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/searcher.lua | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua index 9acc4e8e..0e8ce04c 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -763,7 +763,6 @@ function m.searchRefsByID(status, suri, expect, mode) local crossed = {} if mode == 'def' or mode == 'alldef' - or mode == 'field' or field then for _, guri in ceach('def:' .. id) do if uri == guri then @@ -777,9 +776,6 @@ function m.searchRefsByID(status, suri, expect, mode) if crossed[guri] then goto CONTINUE end - if mode == 'def' or mode == 'alldef' or mode == 'field' then - goto CONTINUE - end if uri == guri then goto CONTINUE end |