summaryrefslogtreecommitdiff
path: root/script-beta/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-08-16 01:58:46 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-08-16 01:58:46 +0800
commitc3cec6c8cd20c319c291431fbec55f1d1d596c6d (patch)
tree55047c4bac77a2bf3d82d1286612cdd799c18949 /script-beta/provider
parentbb1e4a1d0ef31d0ed5d82df22a103cecfe79b251 (diff)
downloadlua-language-server-c3cec6c8cd20c319c291431fbec55f1d1d596c6d.zip
限制回看层级
Diffstat (limited to 'script-beta/provider')
-rw-r--r--script-beta/provider/diagnostic.lua3
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