Skip to content

VS Code

After running unextension sync, the output/vscode/ directory contains:

output/vscode/
extension.js # VS Code extension entry point
package.json # Extension manifest
.vscodeignore # Controls which files are included in the package
LICENSE # Auto-generated license file
webview/ # Your built web app

Run unextension build vscode or the npm script in your project:

Terminal window
npx unextension build vscode

This runs npm install (to get @vscode/vsce) and then vsce package to produce a .vsix file inside output/vscode/.

  1. Open the Extensions panel in VS Code (Ctrl+Shift+X)
  2. Click the ... menu → Install from VSIX…
  3. Select the generated .vsix file from output/vscode/
Terminal window
code --install-extension output/vscode/your-extension-0.0.1.vsix

Go to marketplace.visualstudio.com/manage and create a publisher account.

In Azure DevOps, create a PAT with the Marketplace → Manage scope.

Terminal window
cd output/vscode
npx vsce publish --pat <your-token>

Or log in once and publish:

Terminal window
npx vsce login <publisher-name>
npx vsce publish