When the required VS Code extension is added into a Che plug-in registry, the user can add it into the workspace through the Che Plugins panel or through the workspace configuration.
Adding the VS Code extension using the Che Plugins panel
-
A running instance of Eclipse Che. To install an instance of Eclipse Che, see Che quick-starts
To add the VS Code extension using the Che Plugins panel:
-
Open the Che Plugin panel.
-
Change the current registry to the registry in which the VS Code extension was added.
-
In the search bar, click the Menu button and then click Change Registry to choose the registry from the list. If the required registry is not in the list, add it using the Add Registry menu option. The registry link should point to the
pluginssegment of the registry. For example:https://my-registry.com/v3/plugins/index.json. -
Search for the required plug-in using the filter, and then click the Install button.
-
Restart the workspace for the changes to take effect.
Adding the VS Code extension using the workspace configuration
-
A running instance of Eclipse Che. To install an instance of Eclipse Che, see Che 'quick-starts'.
-
An existing workspace defined on this instance of Eclipse Che Creating a workspace from user dashboard.
To add the VS Code extension using the workspace configuration:
-
Click the Workspaces tab on the Dashboard and select the workspace in which you want to add the plug-in. The Workspace <workspace-name> window is opened showing the details of the workspace.
-
Click the devfile tab.
-
Locate the components section, and add a new entry with the following structure:
- type: chePlugin id: (1)1 Link to the meta.yamlfile in your registry, for example,https://my-plugin-registry/v3/plugins/<publisher>/<plug-inName>/<plug-inVersion>/meta.yamlChe automatically adds the other fields to the new component.
-
Restart the workspace for the changes to take effect.
