How to create a VSIX - PeterWone/vscode-arduino-cli GitHub Wiki

  1. If you don't already have the repo then clone it to your machine.
  2. Load the extension project into VS Code.
  3. If you haven't already then npm install --global vsce
  4. If you haven't already then npm install --global gulp
  5. Get your dependencies using npm i in the extension workspace folder.
  6. You must bump the build version in package.json each time you package or VS Code will install from cache instead of using your fresh bits.
  7. Save your files. Packaging is done from the command line so this won't happen automatically.
  8. gulp package or vsce package

vsce package This is faster because it does less. In particular it doesn't process the localisation. Whether that matters depends on what you changed, code or localisation strings.