From 192768d8393435ea6d7a44ad0c11cf6b8ce09110 Mon Sep 17 00:00:00 2001 From: Megan Rogge Date: Thu, 4 Nov 2021 06:53:17 -0700 Subject: [PATCH] fix #136362 --- .../contrib/terminal/browser/terminalProfileService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/terminal/browser/terminalProfileService.ts b/src/vs/workbench/contrib/terminal/browser/terminalProfileService.ts index c0cf25a0403c4..aee1244bec839 100644 --- a/src/vs/workbench/contrib/terminal/browser/terminalProfileService.ts +++ b/src/vs/workbench/contrib/terminal/browser/terminalProfileService.ts @@ -34,7 +34,7 @@ export class TerminalProfileService implements ITerminalProfileService { private _profilesReadyBarrier: AutoOpenBarrier; private _availableProfiles: ITerminalProfile[] | undefined; private _contributedProfiles: IExtensionTerminalProfile[] = []; - private _defaultProfileName?: string; + private _defaultProfileName: string | null = null; private readonly _profileProviders: Map> = new Map(); private readonly _primaryOffProcessTerminalService?: IOffProcessTerminalService; @@ -84,7 +84,7 @@ export class TerminalProfileService implements ITerminalProfileService { _serviceBrand: undefined; getDefaultProfileName(): string | undefined { - return this._defaultProfileName; + return this._defaultProfileName === null ? undefined : this._defaultProfileName; } @throttle(2000)