From 8ae46c4ec33aa6cd7af756480bcdfd6a71826eb5 Mon Sep 17 00:00:00 2001 From: Sam Riddle Date: Thu, 30 Mar 2023 09:03:28 -0700 Subject: [PATCH] Use defined variable instead of internal property --- .../contrib/terminal/browser/terminalProfileService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/terminal/browser/terminalProfileService.ts b/src/vs/workbench/contrib/terminal/browser/terminalProfileService.ts index 4740a8a3f5ffc..73efd09b3f7f5 100644 --- a/src/vs/workbench/contrib/terminal/browser/terminalProfileService.ts +++ b/src/vs/workbench/contrib/terminal/browser/terminalProfileService.ts @@ -114,7 +114,7 @@ export class TerminalProfileService implements ITerminalProfileService { // IMPORTANT: Only allow the default profile name to find non-auto detected profiles as // to avoid unsafe path profiles being picked up. - return this.availableProfiles.find(e => e.profileName === this._defaultProfileName && !e.isAutoDetected); + return this.availableProfiles.find(e => e.profileName === defaultProfileName && !e.isAutoDetected); } private _getOsKey(os: OperatingSystem): string {