chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.24k stars 896 forks source link

Feature Request - Add support for Visual Studio Code Extensions #785

Open glennsarti opened 8 years ago

glennsarti commented 8 years ago

As of Visual Studio Code 1.2 it is possible to manage visual code extension installations using code.exe An example DSC resource has been created to do just this;

http://www.powershellmagazine.com/2016/06/08/build-your-visual-studio-code-development-environment-using-powershell-dsc/

https://code.visualstudio.com/Updates#_extension-authoring

code --list-extensions
code --install-extension ms-vscode.cpptools
code --uninstall-extension ms-vscode.csharp

My feature request is to create something similar to the Visual Studio (VSIX) extension in Choco.exe but manage Visual Studio Code extensions

Phase 1 - Add a new helper function e.g. Install-ChocolateyVSCodeExtension https://github.com/chocolatey/choco/blob/1889f7e87c902174e31f4ae855e03be149f0a340/src/chocolatey.resources/helpers/functions/Install-ChocolateyVsixPackage.ps1

This will install a VS Code Extension

Phase 2 - VS Code also has the ability to list installed extensions. This could be integrated into the choco.exe list command to show currently installed extensions. And extend choco search to query the VSCode marketplace.

Happy for this to be an up-for-grabs item hint hint

ferventcoder commented 8 years ago

Great idea! Something you will provide a PR for sir?

glennsarti commented 8 years ago

That is my plan yes. Assuming my thinking and method of achieving it is ok.

gep13 commented 8 years ago

@glennsarti NOICE!

pascalberger commented 7 years ago

Not sure if adding a CmdLet for installing a Visual Studio Code really makes sense, since it actually anyway is only a single line command:

code --install-extension myextension

Contrary to Vsix installations where a download is involved, is this here all handled by Visual Studio Code.

See eg. vscode-csharp for an example how a Visual Studio Code Extension can be installed.

ferventcoder commented 7 years ago

@pascalberger I've been seeing that. @gep13 and I were looking at these yesterday. Very slick!

glennsarti commented 7 years ago

I'm happy to close this off.