port fix for vscode issue 160827 (#21457)

This commit is contained in:
Hai Cao
2022-12-21 10:37:55 -08:00
committed by GitHub
parent 6998c8787f
commit 29c8d4bd3d

View File

@@ -103,14 +103,6 @@ async function detectAvailableWindowsProfiles(
source: ProfileSource.GitBash,
isAutoDetected: true
});
detectedProfiles.set('Cygwin', {
path: [
`${process.env['HOMEDRIVE']}\\cygwin64\\bin\\bash.exe`,
`${process.env['HOMEDRIVE']}\\cygwin\\bin\\bash.exe`
],
args: ['--login'],
isAutoDetected: true
});
detectedProfiles.set('Command Prompt', {
path: `${system32Path}\\cmd.exe`,
icon: Codicon.terminalCmd,
@@ -212,7 +204,6 @@ async function initializeWindowsProfiles(testPwshSourcePaths?: string[]): Promis
`${process.env['ProgramFiles']}\\Git\\usr\\bin\\bash.exe`,
`${process.env['LocalAppData']}\\Programs\\Git\\bin\\bash.exe`,
`${process.env['UserProfile']}\\scoop\\apps\\git-with-openssh\\current\\bin\\bash.exe`,
`${process.env['AllUsersProfile']}\\scoop\\apps\\git-with-openssh\\current\\bin\\bash.exe`
],
args: ['--login']
});