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
It'd be cool of vscode-powershell somehow could integrate with external tools for easily setting what PowerShell version to run for a session. It doesn't have to be tool specific, but maybe instead of hardcoding a path to pwsh.exe one could do trigger a command:
mise use pwsh@<version_supplied_by_vscode_powershell>; mise where pwsh@<version_supplied_by_vscode_powershell>
Which then tells what path to pwsh.exevscode-powershell should use.
Proposed Design
No response
The text was updated successfully, but these errors were encountered:
and the most annoying part frankly would be adding the appropriate test coverage. I'm happy to accept a PR for this as long as it comes with citation of documentation as to why it's now looking where. When done correctly, it should make those installed versions available in the PowerShell session menu, and should name them accurately. No defaults should change. This would essentially allow the user to skip manually adding these installations to powershell.powerShellAdditionalExePaths. They could access these PowerShells just by running "Show Session Menu" (or clicking the PowerShell langauage status icon) and could set it as a default by its name.
Teach mise, Aqua, etc. to edit the current workspace's powershell.powerShellDefaultVersion setting to the name of the desired PowerShell as it shows in the additional PowerShells after (1) is completed when running e.g. mise use. This is out of scope of this project and would be something to work on with those developers.
Note that I'm saying this with no familiarity with these exact tools, and am assuming they operate somewhat like the Python and Ruby environment managers.
Prerequisites
Summary
There are now multiple multiplatform tools that can manage PowerShell versions as any other dev tool, like:
It'd be cool of
vscode-powershell
somehow could integrate with external tools for easily setting what PowerShell version to run for a session. It doesn't have to be tool specific, but maybe instead of hardcoding a path topwsh.exe
one could do trigger a command:mise use pwsh@<version_supplied_by_vscode_powershell>; mise where pwsh@<version_supplied_by_vscode_powershell>
Which then tells what path to
pwsh.exe
vscode-powershell
should use.Proposed Design
No response
The text was updated successfully, but these errors were encountered: