general

How do I build the VS Code extension from scratch and install it?

Sa

Sam Tenenholz

Asked on Dec 18, 2023

To build and install a VS Code extension from scratch, follow these steps:

  1. Navigate to the ./clients/vscode directory.
  2. Run yarn to install the dependencies.
  3. Run yarn run dev to open a new VS Code window for development.
  4. Make any necessary changes to the code.
  5. Package the extension using the command vsce package --no-dependencies.
  6. Install the generated .vsix file into VS Code.

If you encounter any issues, ensure that your VS Code version and the version specified in the engines field of your package.json file are compatible. Additionally, check for any errors or logs in the developer tools console of VS Code.

Note: Restarting your computer may help resolve any environment-related issues.

Dec 19, 2023Edited by