-
Notifications
You must be signed in to change notification settings - Fork 511
Non-standard install of PowerShell does not load at session opening #3977
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
@sangafabrice thanks for opening an issue! FYI the giant yellow lines around your config should have been a clue, you're using the old syntax. Try it in the format below, it works fine for me! |
It works perfectly. Thank you. @JustinGrote |
Related to change made in #3919 |
This is a BREAKING CHANGE and sadly there is no note elaborating this change. I believe a seamless migration stategy needs to be implemented, otherwise more newcomers could be missled by old documentation of this setting. https://docs.microsoft.com/en-us/powershell/scripting/dev-cross-plat/vscode/using-vscode?view=powershell-7.2#adding-your-own-powershell-paths-to-the-session-menu= |
Thank you for your comment, but please note that this issue has been closed for over a week. For better visibility, consider opening a new issue with a link to this instead. |
Prerequisites
Summary
Hi,
When starting a new session of vscode-powershell, the default powershell execution path is used
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
although a non-standard install location was set.Here is how the extension is set in
settings.json
:Assuming that the non-standard location points to the
PowerShell Core 7.2.3
executable, this is what is returned from thePowerShell Integrated Console
instead:PowerShell Version
Visual Studio Code Version
Extension Version
[email protected]
Steps to Reproduce
code . --extensions-dir "X:\extensions"
Visuals
Logs
No response
The text was updated successfully, but these errors were encountered: