Configuring extension registry (Tech preview)
You can configure a local extension registry in Code as an admin to ensure that only approved extensions are available to team members within your teamspace.
Before you begin
Before you begin:
- Gained access to DevOps Control with permission to create repositories.
- Download the required .vsix extension files from a trusted source, or use non-published extension files that you have access to. You can visit the specific extension's page in the Open VSX registry, download the desired stable release's .vsix file. Generally, prerelease versions are also listed in Open VSX and only release versions are recommended for deploying.
- Read Authenticating with DevOps Code UI.
About this task
A local extension registry decides which extensions are available in your teamspace. Extensions are stored and versioned in the .devopsconfig Control repository. The DevOps Code extension provides commands that you can use as an administrator to deploy and manage extensions within the extension registry.
The key commands provided by the DevOps Code extension in the cloud IDE are:
- DevOps Code: Deploy to Extension Registry (Tech Preview) - Deploys extension files to the local registry.
- DevOps Code: Fetch from Extension Registry (Tech Preview) - Refreshes the registry after new extensions are pushed to the repository.
Procedure
-
Configure settings.json in the .devopsconfig Control repository to use
the local registry:
-
Add approved extensions in Code:
- Select Open with DevOps Code to clone the .devopsconfig Control repository in Code.
- After cloning the main branch of the .devopsconfig repository in Code, create an extensions folder in the repository root if one does not exist. Note that you can also create other branches and version the extensions on different branches.
- Upload the .vsix files into the extensions folder.
-
Deploy and publish the extensions:
-
Commit and push the changes to Control:
-
Refresh the extension registry:
In Tech Preview, the registry does not automatically detect new extensions after a push.
Results
The extensions are now available in the local registry. Members in a teamspace can view and install only the extensions that you have added and published.
What to do next
Install the extensions approved by administrator from the Extensions view in Code.