We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e829bd commit be41e5bCopy full SHA for be41e5b
src/platform.ts
@@ -71,7 +71,7 @@ export function getDefaultPowerShellPath(
71
// and the user's desire to run the x86 version of PowerShell
72
if (platformDetails.operatingSystem === OperatingSystem.Windows) {
73
const psCoreInstallPath =
74
- (!platformDetails.isProcess64Bit ? process.env.ProgramW6432 : process.env.ProgramFiles) + "\\PowerShell";
+ (platformDetails.isProcess64Bit ? process.env.ProgramFiles : process.env.ProgramW6432) + "\\PowerShell";
75
if (fs.existsSync(psCoreInstallPath)) {
76
const arch = platformDetails.isProcess64Bit ? "(x64)" : "(x86)";
77
const psCorePaths =
0 commit comments