From 9fb8f877d5ed1ccc094603859c89d1bab0a092b4 Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Tue, 21 Feb 2023 22:19:01 +0100 Subject: [PATCH] fix #174919 --- src/vs/workbench/contrib/logs/common/defaultLogLevels.ts | 2 +- src/vs/workbench/contrib/logs/common/logsActions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/logs/common/defaultLogLevels.ts b/src/vs/workbench/contrib/logs/common/defaultLogLevels.ts index 8a318ed0ef7af..0f4bff3cea3a0 100644 --- a/src/vs/workbench/contrib/logs/common/defaultLogLevels.ts +++ b/src/vs/workbench/contrib/logs/common/defaultLogLevels.ts @@ -94,7 +94,7 @@ class DefaultLogLevelsService implements IDefaultLogLevelsService { private async _writeLogLevelsToArgv(logLevels: ParsedArgvLogLevels): Promise { const logLevelsValue: string[] = []; - if (logLevels.default) { + if (!isUndefined(logLevels.default)) { logLevelsValue.push(LogLevelToString(logLevels.default)); } for (const [extension, logLevel] of logLevels.extensions ?? []) { diff --git a/src/vs/workbench/contrib/logs/common/logsActions.ts b/src/vs/workbench/contrib/logs/common/logsActions.ts index e5eb7911c87e1..5451519eb35c2 100644 --- a/src/vs/workbench/contrib/logs/common/logsActions.ts +++ b/src/vs/workbench/contrib/logs/common/logsActions.ts @@ -129,7 +129,7 @@ export class SetLogLevelAction extends Action { } private getLogLevelEntries(defaultLogLevel: LogLevel, currentLogLevel: LogLevel): LogLevelQuickPickItem[] { - const button: IQuickInputButton = { iconClass: ThemeIcon.asClassName(Codicon.arrowSwap), tooltip: nls.localize('resetLogLevel', "Set as Default Log Level") }; + const button: IQuickInputButton = { iconClass: ThemeIcon.asClassName(Codicon.checkAll), tooltip: nls.localize('resetLogLevel', "Set as Default Log Level") }; return [ { label: this.getLabel(LogLevel.Trace, currentLogLevel), level: LogLevel.Trace, description: this.getDescription(LogLevel.Trace, defaultLogLevel), buttons: defaultLogLevel !== LogLevel.Trace ? [button] : undefined }, { label: this.getLabel(LogLevel.Debug, currentLogLevel), level: LogLevel.Debug, description: this.getDescription(LogLevel.Debug, defaultLogLevel), buttons: defaultLogLevel !== LogLevel.Debug ? [button] : undefined },