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 {
335335 // If the linter output is now empty, then there are no errors.
336336 // Discard the previous diagnostic state for this document
337337 if ( this . fortranDiagnostics . has ( document . uri ) ) this . fortranDiagnostics . delete ( document . uri ) ;
338+ this . logger . debug ( '[lint] No linting diagnostics to show' ) ;
338339 return ;
339340 }
340341 let diagnostics : vscode . Diagnostic [ ] = this . linter . parse ( output ) ;
342+ this . logger . debug ( '[lint] Parsing output to vscode.Diagnostics' , diagnostics ) ;
341343 // Remove duplicates from the diagnostics array
342344 diagnostics = [ ...new Map ( diagnostics . map ( v => [ JSON . stringify ( v ) , v ] ) ) . values ( ) ] ;
345+ this . logger . debug ( '[lint] Removing duplicates. vscode.Diagnostics are now:' , diagnostics ) ;
343346 this . fortranDiagnostics . set ( document . uri , diagnostics ) ;
344347 return diagnostics ;
345348 }
You can’t perform that action at this time.
0 commit comments