-
Notifications
You must be signed in to change notification settings - Fork 520
Add Install-VSCode.ps1 script #716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Would definitely appreciate some feedback on the quality of this script!
Uninstalled both the current and insiders vs code versions. Ran the script, worked like a charm. I'll try again and make sure the PSES ext is not installed too.
scripts/Install-VSCode.ps1
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I usually don't bother specifying Mandatory=$false since that is the default. Other than that LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh yep, thanks!
This change adds a new script that can be used to install Visual Studio Code and the PowerShell extension. The intent is for this script to be shipped to the PowerShell Gallery so that one can easily get the script and install VS Code in a single line of PowerShell.
893acc7 to
1a70faa
Compare
Thanks guys!
adamrushuk
commented
May 8, 2017
Although this worked initially, I tried uninstalling the PowerShell Extension before uninstalling VSCode, and this time got this error which left VSCode installed without the PowerShell Extension:
image
Argh, yeah, VS Code has this weird thing where they need to update their internal extension metadata by restarting the editor. If you uninstall the extension and close the editor then try to reinstall the extension via command line, VS Code throws up. Not sure if there's a way around that yet, but I'll see what I can figure out.
Thanks for letting me know!
adamrushuk
commented
May 9, 2017
Ah that was my bad then as I didn't restart code before uninstalling during the test.
It worked as expected once I did the above, but struggled to delete the previously downloaded "vscode-stable.exe" file in $env:TEMP. That looks like a known issue though, so I manually deleted before the successful test shown below:
This change adds a new script that can be used to install Visual Studio
Code and the PowerShell extension. The intent is for this script to be
shipped to the PowerShell Gallery so that one can easily get the script
and install VS Code in a single line of PowerShell.