Skip to content

Commit 99db162

Browse files
author
Andrew Hall
authored
Fix Razor Report An Issue (#7894)
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
1 parent 2d760a9 commit 99db162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/razor/src/diagnostics/reportIssuePanel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class ReportIssuePanel {
120120
}
121121

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

0 commit comments

Comments
 (0)