Skip to content

Install-VSCode doesn't support "Stable-User" BuildEdition #2048

Closed
@JMGEHMAN

Description

@JMGEHMAN

The BuildEdition parameter of the Install-VSCode.ps1 script should support the "Stable-User" option - it currently only allows "Stable", which results in an install of "Stable-System.

If a user wants to install the Insiders version of VS Code, they have the option of specifying "Insider-System" or "Insider-User". However, there is only one option if selecting the "Stable" version.

Proposed technical implementation details (optional)
Add "Stable-User" to the ValidateSet check for the BuildEdition parameter. With the necessary changes to code to support the additional option. This creates an inconsistency between naming conventions for Stable and Insider editions - not sure what, if anything, should be done to address.

  • Option 1
    Keep "Stable" and simply add "Stable-User".
[parameter()]
[ValidateSet("Stable", "Stable-User", "Insider-System", "Insider-User")]
[string]$BuildEdition = "Stable",
  • Option 2
    Rename "Stable" to "Stable-System" in addition to adding "Stable-User".
[parameter()]
[ValidateSet("Stable-System", "Stable-User", "Insider-System", "Insider-User")]
[string]$BuildEdition = "Stable-System",

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions