This section describes how to install a Visual Studio Code (VS Code) extension from the VS Code marketplace in a Che workspace when using Che-Theia as the Che editor component.

This method of installing VS Code extensions is for extensions that do not have runtime dependencies. To install extensions that require particular dependencies (tools, environment variables, runtime servers), see section [publishing-a-vs-code-extension-into-the-che-plug-in-registry_using-a-visual-studio-code-extension-in-che].

Prerequisites
  • A running instance of Eclipse Che. To install an instance of Eclipse Che, see Che 'quick-starts'.

  • Configure the Che-Theia memory limit with 512 MB RAM or more to run the Che-Theia editor. In addition, reserve sufficient memory for the VS code extensions. The specific amount of memory required depends on the extensions used.

Procedure

To import a VS Code extension in the Che Theia editor:

  1. Navigate to the VS Code marketplace, locate the required extension, and copy the VS Code Quick Open code to the clipboard.

  2. Open the Che Plugins panel in the Che-Theia IDE. If the panel is not shown, use the ViewChe Plugins menu options from the main menu.

    For macOS users, paste the install command or the install button into the Che Plugins panel.

    vs code extension installation
  3. In the Install extension dialog box, click Install to start the installation. The VS Code plugin has been installed message indicates successful installation of the plug-in.

  4. In the top-left corner of the window, click Click here to apply changes and restart your workspace to restart the workspace and apply the changes.

    vs code extension apply restart
  5. In the Restart Workspace dialog box, click Restart to confirm the action.

    vs code extension restart workspace

After the workspace restarts, the added VS Code extensions are launched.