Skip to content

Commit 9bc75a5

Browse files
authored
Ensure pwsh (powershell Core) use the right activation script (#112)
For #109
1 parent 4bb687c commit 9bc75a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/managers/builtin/venvUtils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ async function getPythonInfo(env: NativeEnvInfo): Promise<PythonEnvironmentInfo>
139139
shellActivation.set(TerminalShellType.powershell, [
140140
{ executable: '&', args: [path.join(binDir, 'Activate.ps1')] },
141141
]);
142+
shellActivation.set(TerminalShellType.powershellCore, [
143+
{ executable: '&', args: [path.join(binDir, 'Activate.ps1')] },
144+
]);
142145
shellDeactivation.set(TerminalShellType.powershell, [{ executable: 'deactivate' }]);
146+
shellDeactivation.set(TerminalShellType.powershellCore, [{ executable: 'deactivate' }]);
143147

144148
// Commands for command prompt
145149
shellActivation.set(TerminalShellType.commandPrompt, [{ executable: path.join(binDir, 'activate.bat') }]);

0 commit comments

Comments
 (0)