Closed
Description
Prerequisites
- I have written a descriptive issue title.
- I have searched all open and closed issues to ensure it has not already been reported.
- I have read the troubleshooting guide.
- I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
- I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
- If this is a security issue, I have read the security issue reporting guidance.
Summary
Good evening
The vscode-powershell implementation of the "inplace PowerShell 7 update" is unfortunately terribly awkwardly implemented and it's random if the PowerShell 7 update works at all.
In the most embarrassing case, the PowerShell 7 update works like this:
- the VS Code Extension reports the PowerShell 7 update
- the PowerShell 7 update detects that VS Code has started pwsh.exe and aks if it should stop the exe
- if the user chooses that the setup should terminate pwsh.exe, it happens that VS Code is terminated as well.
- because VS Code is terminated, the PowerShell 7 setup is also killed
It would be much more useful if the VS Code vscode-powershell Extension would just offer two links if it detects the update:
Link 1: Link to the Setup exe. If the user clicks to the link, the web browser is opened, so that the setup will work for sure (it must be starte independent of VS Code)
Link 2: Link to the release notes.
Thanks a lot, kind regards,
Thomas
PowerShell Version
Name Value
---- -----
PSVersion 7.2.11
PSEdition Core
GitCommitId 7.2.11
OS Microsoft Windows 10.0.19044
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visual Studio Code Version
1.77.3
704ed70d4fd1c6bd6342c436f1ede30d1cff4710
x64
Extension Version
Steps to Reproduce
- Wait, until the vscode-powershell extension reports a PowerShell 7 update
- Start the Update from the vscode-powershell extension pupup dialog
- The PowerShell 7 update usually gets a nightmare which ends in the user is using google for PowerShell 7 update, downloads the setup exe himself and install it without VS Code and the vscode-powershell extension
Visuals
n/a
Logs
n/a
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done