Skip to content

Allow upgrading with WinGet #5477

Closed as not planned
Closed as not planned

Description

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.

Summary

Allow the user to choose to upgrade with WinGet when new version is available

Proposed Design

PR #5558 extends promptToUpdate() in UpdatePowerShell.ts:

New version detected
  |
  +-- Not Windows? --> [Open GitHub Release] [Not Now] [Don''t Show Again]
  |
  +-- Windows? --> winget show --id Microsoft.PowerShell
        |
        +-- WinGet installed, version > local?
        |     --> [Upgrade with WinGet] [Open GitHub Release] [Not Now] [Don''t Show Again]
        |
        +-- WinGet installed, version < GitHub release?
        |     --> [View WinGet Progress] [Open GitHub Release] [Not Now] [Don''t Show Again]
        |
        +-- WinGet not installed?
              (fallback: query winget-pkgs GitHub API)
              --> [Install WinGet] [Open GitHub Release] [Not Now] [Don''t Show Again]
Button Action
Upgrade with WinGet Opens terminal: winget update --id Microsoft.PowerShell -e -s winget
Install WinGet Installs WinGet via Add-AppxPackage, then upgrades PowerShell
View WinGet Progress Opens matching issue/PR in microsoft/winget-pkgs
Open GitHub Release Opens github.com/PowerShell/PowerShell/releases/tag/vX.Y.Z

Activity

  1. andyleejordan commented on Apr 27, 2026

    @andyleejordan
    Member

    Are other VS Code extensions upgradeable with WinGet?

  2. JustinGrote commented on Apr 27, 2026

    @JustinGrote
    Collaborator

    While theoretically possible, vscode already has robust extension management and it can be handled via the command line --install-extension switch, so I would say this should go in the wontfix bucket as we'd have to own a manifest and keep it up to date.

  3. andyleejordan commented on Apr 29, 2026

    @andyleejordan
    Member

    Agreed.

  4. PtJade-Ceramic commented on Jul 21, 2026

    @PtJade-Ceramic
    ContributorAuthor

    Just to clarify the misunderstanding -- this issue is about upgrading PowerShell itself via WinGet, not the VS Code extension.

    The extension already has an update notification feature (in UpdatePowerShell.ts) that detects new PowerShell releases and prompts users to open the GitHub release page. This feature request adds a WinGet upgrade option alongside "Open GitHub Release":

    winget update --id Microsoft.PowerShell -e -s winget
    

    PR #5558 implements this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-EnhancementA feature request (enhancement).Needs: TriageMaintainer attention needed!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions