File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -335,11 +335,14 @@ export class FortranLintingProvider {
335
335
// If the linter output is now empty, then there are no errors.
336
336
// Discard the previous diagnostic state for this document
337
337
if ( this . fortranDiagnostics . has ( document . uri ) ) this . fortranDiagnostics . delete ( document . uri ) ;
338
+ this . logger . debug ( '[lint] No linting diagnostics to show' ) ;
338
339
return ;
339
340
}
340
341
let diagnostics : vscode . Diagnostic [ ] = this . linter . parse ( output ) ;
342
+ this . logger . debug ( '[lint] Parsing output to vscode.Diagnostics' , diagnostics ) ;
341
343
// Remove duplicates from the diagnostics array
342
344
diagnostics = [ ...new Map ( diagnostics . map ( v => [ JSON . stringify ( v ) , v ] ) ) . values ( ) ] ;
345
+ this . logger . debug ( '[lint] Removing duplicates. vscode.Diagnostics are now:' , diagnostics ) ;
343
346
this . fortranDiagnostics . set ( document . uri , diagnostics ) ;
344
347
return diagnostics ;
345
348
}
You can’t perform that action at this time.
0 commit comments