You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Workspace Settings does not work for powershellDefaultVersion for the autodiscovered powershell paths. It triggers but does not switch correctly. This is probably due to something in the new discovery code. User Settings works fine.
Interestingly, the "setting" in vscode still knows it as x86, even though it loads x64, so it's not a settings loading issue.
Probably related, it appears to only happen with "built-in" shells. Using AdditionalExePath entries works fine.
Attached Logs
Follow the instructions in the README about
capturing and sending logs.
Yes I think @rjmholt made this discovery earlier this week. Thanks for capturing it in an issue. It seems to be an issue with how we find the 32bit version of PowerShell. It's easy to get wrong as the paths to Windows PowerShell are totally different if you open VS Code 64 bit vs VS Code 32bit.
I think this is actually a case-sensitivity issue; try changing Windows Powershell (x86) to Windows PowerShell (x86). When the given configuration doesn't match anything, it defaults to the first PowerShell it finds.
Originally I made this case sensitive since, as user-defined monikers, that might be wanted. But I'll submit a PR to change it over.
@rjmholt I wouldn't be surprised, half the reason I use Powershell is I suck at aligning cases :) I'll try to repro but I agree it should be case insensitive, since they are descriptors and not hard paths that might have issue cross platform e.g. on linux.
@TylerLeonhardt, likely related to @rjmholt's detection logic.
Issue Description
Workspace Settings does not work for powershellDefaultVersion for the autodiscovered powershell paths. It triggers but does not switch correctly. This is probably due to something in the new discovery code. User Settings works fine.
Interestingly, the "setting" in vscode still knows it as x86, even though it loads x64, so it's not a settings loading issue.
Probably related, it appears to only happen with "built-in" shells. Using AdditionalExePath entries works fine.
Attached Logs
Follow the instructions in the README about
capturing and sending logs.
Environment Information
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: