-
Notifications
You must be signed in to change notification settings - Fork 510
restarting Integrated Console does not respect powershell.powerShellDefaultVersion setting #1586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It looks like this is deliberate: vscode-powershell/src/session.ts Lines 286 to 299 in 0388343
@rkeithhill do you know what @fbehrens If you set the |
From the configuration comments:
The above is a true "user" preference while this:
is what the "extension" uses to store the last selected PowerShell version's path. |
I just ran into this while using multiple powershell versions.
after closing the integrated terminal using the trashcan, and re-opening it using the warning dialog (as per the issue author), it loads
|
seems to be loading 7 by default even when changing Some more digging: using the settings ui both 5.1 and 7 have a only after being in 7.0 will you see that you are in current session of 7.0 The two different settings used in the settings.json are: |
The default needs to be specified by name rather than path; try: "powerShell.powerShellDefaultVersion": "Windows PowerShell (x64)" |
The original issue is fixed now. If you still see this behavior please let us know. |
System Details
System Details Output
Issue Description
I have set the setting
"powershell.powerShellDefaultVersion": "Windows PowerShell (x86)"
When I start

code
and thePowershell Integrated Terminal
is and shows the correct Version(5.1 (x86)
)When I kill the Terminal

and say
YES
, I like to restart it.I am not getting an
Windows PowerShell (x86)
,but a 64bit
Attached Logs
Here are diagnostics log
logs.zip
The text was updated successfully, but these errors were encountered: