Skip to content

Commit 89e0701

Browse files
committed
feat(lint): increased the details of logs
1 parent 8e6bec6 commit 89e0701

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/features/linter-provider.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)