MickRip
MickRip

Reputation: 372

VSCode Private Extension Repository for teams

I'm writing highly specific private VSCode extensions for our dev team. I will be making constant changes to these extensions. From what I've read, the only way is to compile the extension as a .vsix file and send this file to each of the team.

This workflow is tedious and feels unnecessary.

I am looking for a more automatic and transparent solution, which more or less updates the private extension automatically.

Has this scenario been solved?

Upvotes: 26

Views: 17899

Answers (3)

starball
starball

Reputation: 50324

At the time of this writing, any given build of VS Code has a single endpoint which it communicates with as the extension marketplace. The default build of VS Code by Microsoft points to https://marketplace.visualstudio.com in its product.json. For VS Code, to get a different marketplace, you would need to change product.json.

There's a popular feature request asking for an easier way to point to a private marketplace: Feature Request: Support for private marketplace/gallery #21839. I suggest that you give that issue ticket a thumbs up to show support for it. You can also subscribe to it to get notified about discussion and progress. Please avoid making noisy comments there like ones that just consist of "+1" / "bump".

Other builds of VS Code such as VSCodium may have custom features for this, such as VSCodium has, described in https://github.com/VSCodium/vscodium/pull/674 (custom user product.json).

For some basic, small use-cases, you may find VS Code 1.88's new feature for local workspace extensions useful, though not super scalable, as I assume you will need to do manual updates (though git submodules may be useful). TL;DR, package the extension into the workspace's .vscode/extensions/ directory.

Upvotes: 1

Abd-Elaziz Sharaf
Abd-Elaziz Sharaf

Reputation: 334

2023 / v1.79.2 : You may consider this extension pack

https://marketplace.visualstudio.com/items?itemName=garmin.private-extension-manager

Private Extension Manager lets you find, install, and update extensions from any NPM registry. This lets you distribute organization-specific extensions using a private registry server such as Sonatype Nexus or Verdaccio.

Upvotes: 1

Matt Bierner
Matt Bierner

Reputation: 65243

Not as of VSCode 1.14 but we are tracking the feature request here: https://github.com/Microsoft/vscode/issues/21839

Upvotes: 26

Related Questions