diff --git a/src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts b/src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts index c305c68061b..30678944711 100644 --- a/src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts +++ b/src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts @@ -102,7 +102,7 @@ export const terminalConfiguration: IConfigurationNode = { ], args: [] }, - 'Windows Powershell': { + 'Windows PowerShell': { comment: 'note that this will not be included in the quickSelect drop down if another version of powershell is installed', path: [ diff --git a/src/vs/workbench/contrib/terminal/node/terminalProfiles.ts b/src/vs/workbench/contrib/terminal/node/terminalProfiles.ts index 93e7a0e5b80..b8226f79f46 100644 --- a/src/vs/workbench/contrib/terminal/node/terminalProfiles.ts +++ b/src/vs/workbench/contrib/terminal/node/terminalProfiles.ts @@ -82,12 +82,6 @@ async function detectAvailableWindowsProfiles(quickLaunchOnly: boolean, logServi if (!quickLaunchOnly) { return detectedProfiles; } - - // only show the windows powershell profile if no other powershell profile exists - if (detectedProfiles.find(p => p.profileName === 'PowerShell')) { - detectedProfiles = detectedProfiles.filter(p => p.profileName !== 'Windows PowerShell'); - } - let validProfiles: ITerminalProfile[] = []; if (detectedProfiles && configProfiles) { @@ -151,6 +145,11 @@ async function detectAvailableWindowsProfiles(quickLaunchOnly: boolean, logServi } else { logService?.trace(`No detected profiles ${JSON.stringify(detectedProfiles)} or ${JSON.stringify(configProfiles)}`); } + + // only show the windows powershell profile if no other powershell profile exists + if (validProfiles.find(p => p.path.endsWith('pwsh.exe'))) { + validProfiles = validProfiles.filter(p => p.profileName !== 'Windows PowerShell'); + } return validProfiles; }