Skip to content

Commit

Permalink
Fix "undefined warnings" bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasAlaif committed Jan 20, 2022
1 parent bf0fca6 commit 8c12156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ export class DiagnosticsManager {
this.verificationStatus.command = "workbench.action.problems.focus";
} else if (verificationDiagnostics.hasWarnings()) {
const counts = verificationDiagnostics.countsBySeverity();
const warnings = counts.get(vscode.DiagnosticSeverity.Error);
const warnings = counts.get(vscode.DiagnosticSeverity.Warning);
const noun = warnings === 1 ? "warning" : "warnings";
this.verificationStatus.text = `$(warning) Verification of ${target} '${escapedFileName}' succeeded with ${warnings} ${noun} (${durationSecMsg} s)`;
this.verificationStatus.command = "workbench.action.problems.focus";
Expand Down

0 comments on commit 8c12156

Please sign in to comment.