@@ -222,6 +222,8 @@ function m.doDiagnostic(uri, isScopeDiag)
222222 local prog <close> = progress .create (scp , lang .script .WINDOW_DIAGNOSING , 0.5 )
223223 prog :setMessage (ws .getRelativePath (uri ))
224224
225+ log .debug (' Diagnostic file:' , uri )
226+
225227 local syntax = m .syntaxErrors (uri , state )
226228
227229 local diags = {}
@@ -230,6 +232,7 @@ function m.doDiagnostic(uri, isScopeDiag)
230232 tracy .ZoneBeginN ' mergeSyntaxAndDiags'
231233 local _ <close> = tracy .ZoneEnd
232234 local full = mergeDiags (syntax , lastDiag , diags )
235+ log .debug ((' Pushed [%d] results' ):format (full and # full or 0 ))
233236 if not full then
234237 m .clear (uri )
235238 return
@@ -372,7 +375,7 @@ function m.diagnosticsScope(uri, force)
372375 end )
373376 end )
374377 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 ))
376379 for i , uri in ipairs (uris ) do
377380 while loading .count () > 0 do
378381 await .sleep (1.0 )
@@ -387,7 +390,7 @@ function m.diagnosticsScope(uri, force)
387390 end
388391 end
389392 bar :remove ()
390- log .debug (' 全文诊断耗时: ' , os.clock () - clock )
393+ log .debug (( ' Diagnostics scope [%s] finished, takes [%.3f] sec. ' ): format ( scp : getName () , os.clock () - clock ) )
391394 end , id )
392395end
393396
0 commit comments