VS Code
Output structure
Section titled “Output structure”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 appBuilding
Section titled “Building”Run unextension build vscode or the npm script in your project:
npx unextension build vscodeThis runs npm install (to get @vscode/vsce) and then vsce package to produce a .vsix file inside output/vscode/.
Installing locally
Section titled “Installing locally”Via the UI
Section titled “Via the UI”- Open the Extensions panel in VS Code (
Ctrl+Shift+X) - Click the
...menu → Install from VSIX… - Select the generated
.vsixfile fromoutput/vscode/
Via the CLI
Section titled “Via the CLI”code --install-extension output/vscode/your-extension-0.0.1.vsixPublishing to the VS Code Marketplace
Section titled “Publishing to the VS Code Marketplace”1. Create a publisher
Section titled “1. Create a publisher”Go to marketplace.visualstudio.com/manage and create a publisher account.
2. Get a Personal Access Token
Section titled “2. Get a Personal Access Token”In Azure DevOps, create a PAT with the Marketplace → Manage scope.
3. Publish
Section titled “3. Publish”cd output/vscodenpx vsce publish --pat <your-token>Or log in once and publish:
npx vsce login <publisher-name>npx vsce publish