question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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",

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
JMGEHMANcommented, Jun 25, 2019

Thanks, ghvanderweg. I’d like to take as well. Planning on using it as a demo on contributing to PowerShell/open source.

1reaction
JMGEHMANcommented, Oct 9, 2019

It took too long for me to get approval. Thanks to @Lothindir for fixing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

vscode-powershell/Install-VSCode.ps1 at main - GitHub
Provides PowerShell language and debugging support for Visual Studio Code - vscode-powershell/Install-VSCode.ps1 at main · PowerShell/vscode-powershell.
Read more >
Install-VSCode.ps1 1.4.2 - PowerShell Gallery
A validated string defining which build edition or "stream" to download: Stable or Insiders Edition (system install or user profile install). If the...
Read more >
https://raw.githubusercontent.com/PowerShell/vscod...
SYNOPSIS Installs Visual Studio Code, the PowerShell extension, and optionally a ... 'Stable-User', 'Insider-System', 'Insider-User')] [string]$BuildEdition ...
Read more >
June 2018 (version 1.25) - Visual Studio Code
VS Code now supports Portable Mode, where all data created and maintained by VS Code is located near the installation. This lets you...
Read more >
Visual Studio Code (VS Code) Extension for Zowe - Zowe Docs
Use the following steps to install Zowe Explorer: Address the software requirements. Open Visual Studio Code, and navigate to the Extensions tab ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found