diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-08-15 16:24:56 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-08-15 16:24:56 +0800 |
commit | 081ad3c0c8cc7935d5e5aa52e2a4c2bcc47f3402 (patch) | |
tree | 179097cd007f128b57cf9ee423bd8530c2b608e9 /script-beta/vm/eachDef.lua | |
parent | 0177c2914c223fb6b335bfdccac1f146c2f80a60 (diff) | |
download | lua-language-server-081ad3c0c8cc7935d5e5aa52e2a4c2bcc47f3402.zip |
一些调试
Diffstat (limited to 'script-beta/vm/eachDef.lua')
-rw-r--r-- | script-beta/vm/eachDef.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/script-beta/vm/eachDef.lua b/script-beta/vm/eachDef.lua index fd34bed3..dfd6ce1a 100644 --- a/script-beta/vm/eachDef.lua +++ b/script-beta/vm/eachDef.lua @@ -2,6 +2,7 @@ local vm = require 'vm.vm' local guide = require 'parser.guide' local ws = require 'workspace' local files = require 'files' +local util = require 'utility' local m = {} @@ -23,7 +24,10 @@ function m.eachDef(source, results) return results end - local myResults = guide.requestDefinition(source, vm.interface) + local myResults, count = guide.requestDefinition(source, vm.interface) + if DEVELOP and count > 10 then + log.warn('requestDefinition', count, util.dump(source, { deep = 0 })) + end vm.mergeResults(results, myResults) m.searchLibrary(source, results) m.searchLibrary(guide.getObjectValue(source), results) |