@@ -222,6 +222,8 @@ function m.doDiagnostic(uri, isScopeDiag)
222
222
local prog <close> = progress .create (scp , lang .script .WINDOW_DIAGNOSING , 0.5 )
223
223
prog :setMessage (ws .getRelativePath (uri ))
224
224
225
+ log .debug (' Diagnostic file:' , uri )
226
+
225
227
local syntax = m .syntaxErrors (uri , state )
226
228
227
229
local diags = {}
@@ -230,6 +232,7 @@ function m.doDiagnostic(uri, isScopeDiag)
230
232
tracy .ZoneBeginN ' mergeSyntaxAndDiags'
231
233
local _ <close> = tracy .ZoneEnd
232
234
local full = mergeDiags (syntax , lastDiag , diags )
235
+ log .debug ((' Pushed [%d] results' ):format (full and # full or 0 ))
233
236
if not full then
234
237
m .clear (uri )
235
238
return
@@ -372,7 +375,7 @@ function m.diagnosticsScope(uri, force)
372
375
end )
373
376
end )
374
377
local uris = files .getAllUris (uri )
375
- log .info ((' diagnostics scope [%s], files count:[%d]' ):format (scp :getName (), # uris ))
378
+ log .info ((' Diagnostics scope [%s], files count:[%d]' ):format (scp :getName (), # uris ))
376
379
for i , uri in ipairs (uris ) do
377
380
while loading .count () > 0 do
378
381
await .sleep (1.0 )
@@ -387,7 +390,7 @@ function m.diagnosticsScope(uri, force)
387
390
end
388
391
end
389
392
bar :remove ()
390
- log .debug (' 全文诊断耗时: ' , os.clock () - clock )
393
+ log .debug (( ' Diagnostics scope [%s] finished, takes [%.3f] sec. ' ): format ( scp : getName () , os.clock () - clock ) )
391
394
end , id )
392
395
end
393
396
0 commit comments