Skip to content

Commit

Permalink
Fix Razor Report An Issue (#7894)
Browse files Browse the repository at this point in the history
With #7805 we switched to using vscode loglevels and LogOutputWindow which regressed the check for loglevel in report an issue.

As it turns out Off=0, which is less than Debug=2

Fixes devdiv.visualstudio.com/DevDiv/_workitems/edit/2331879?view=edit
  • Loading branch information
ryzngard authored Jan 3, 2025
1 parent 2d760a9 commit 99db162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/razor/src/diagnostics/reportIssuePanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class ReportIssuePanel {
}

let panelBodyContent = '';
if (this.logger.logLevel <= vscode.LogLevel.Debug) {
if (this.logger.logLevel <= vscode.LogLevel.Debug && this.logger.logLevel != vscode.LogLevel.Off) {
const startButtonLabel = vscode.l10n.t('Start');
const startButton = `<button onclick="startIssue()">${startButtonLabel}</button>`;
const firstLine = vscode.l10n.t('Press {0}', startButton);
Expand Down

0 comments on commit 99db162

Please sign in to comment.