diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-08-28 16:59:58 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-08-28 16:59:58 +0800 |
commit | 697aa9822b989d670c38bab8b4a0c25352a1b316 (patch) | |
tree | 26ee36e3575a4bd4eaf84e4a17fe8d4cdfd8f3b0 /script-beta/vm/eachDef.lua | |
parent | eec3341dcba8b4076a038827aad3869a1439058b (diff) | |
download | lua-language-server-697aa9822b989d670c38bab8b4a0c25352a1b316.zip |
允许在索引过程中访问库
Diffstat (limited to 'script-beta/vm/eachDef.lua')
-rw-r--r-- | script-beta/vm/eachDef.lua | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/script-beta/vm/eachDef.lua b/script-beta/vm/eachDef.lua index 030fccea..e251cda5 100644 --- a/script-beta/vm/eachDef.lua +++ b/script-beta/vm/eachDef.lua @@ -6,17 +6,6 @@ local await = require 'await' local m = {} -function m.searchLibrary(source, results) - if not source then - return - end - local lib = vm.getLibrary(source) - if not lib then - return - end - vm.mergeResults(results, { lib }) -end - function m.eachDef(source, results) results = results or {} local lock = vm.lock('eachDef', source) @@ -32,8 +21,6 @@ function m.eachDef(source, results) log.warn('requestDefinition', count, os.clock() - clock, guide.getRoot(source).uri, util.dump(source, { deep = 1 })) end vm.mergeResults(results, myResults) - m.searchLibrary(source, results) - m.searchLibrary(guide.getObjectValue(source), results) lock() |