fix: address the WinGet review feedback · PowerShell/vscode-powershell@096ead7 · GitHub
Skip to content

Commit 096ead7

Browse files
fix: address the WinGet review feedback
- Only offer "Upgrade with WinGet" when the installed WinGet reports a newer version; otherwise `winget update` is a guaranteed no-op while the message already says WinGet has not caught up. "View WinGet Progress" is still offered while the catalog lags. - Treat only ENOENT from `winget show` as WinGet being missing. Other failures (source lookups, network problems, and so on) keep WinGet installed with an unknown version instead of offering to install it. - Run the install action in an explicit `powershell.exe` terminal, since `Add-AppxPackage` is a PowerShell cmdlet and the user's default terminal profile may be cmd or Git Bash. - Show the terminal before sending the WinGet command so progress and errors are visible, matching how the extension reveals its own terminal.
1 parent b17a977 commit 096ead7

2 files changed

Lines changed: 541 additions & 253 deletions

File tree

‎src/features/UpdatePowerShell.ts‎

Lines changed: 142 additions & 69 deletions

0 commit comments

Comments
 (0)