diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-08-16 01:58:46 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-08-16 01:58:46 +0800 |
commit | c3cec6c8cd20c319c291431fbec55f1d1d596c6d (patch) | |
tree | 55047c4bac77a2bf3d82d1286612cdd799c18949 /script-beta/provider/diagnostic.lua | |
parent | bb1e4a1d0ef31d0ed5d82df22a103cecfe79b251 (diff) | |
download | lua-language-server-c3cec6c8cd20c319c291431fbec55f1d1d596c6d.zip |
限制回看层级
Diffstat (limited to 'script-beta/provider/diagnostic.lua')
-rw-r--r-- | script-beta/provider/diagnostic.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script-beta/provider/diagnostic.lua b/script-beta/provider/diagnostic.lua index 34cec966..9e1ae0d1 100644 --- a/script-beta/provider/diagnostic.lua +++ b/script-beta/provider/diagnostic.lua @@ -205,14 +205,15 @@ function m.refresh(uri) end function m.diagnosticsAll() + local clock = os.clock() for uri in files.eachFile() do m.doDiagnostic(uri) end + log.debug('全文诊断耗时:', os.clock() - clock) end function m.start() m._start = true - m.diagnosticsAll() end |