vscode-extension
Installation
SKILL.md
Building + publishing a VS Code extension
A VS Code extension is a TypeScript module on the Extension API (package.json manifest with contributes, activationEvents, main). Source in integrations/<name>/. Publish to two marketplaces from one .vsix: the Visual Studio Marketplace (vsce) and Open VSX (ovsx — what Cursor / Windsurf / VSCodium / Gitpod install from). Command playbook: itsryanarmani/scripts scripts/vscode-extension/README.md.
When to use
- Triggers: 'build a VS Code extension', 'publish to the VS Code Marketplace', 'vsce package/publish', 'ovsx publish', 'Open VSX', 'vsce segfault', 'SVG restricted in README', 'create a Marketplace publisher'.
- vsce, ovsx and their esbuild packaging segfault on Node 22+ (use Node 20); vsce rejects SVG images in README.md.
- The Marketplace publisher needs a hand-filled browser form and an Azure DevOps PAT; Open VSX is a GitHub login (
ovsx create-namespace,ovsx publish -p <token>). Siblings: raycast-extension, browser-extension.
The trap that segfaults packaging: Node version
vsce package / vsce publish / ovsx publish run an esbuild-based bundler that segfaults on Node 22 and 25 (exit 139, no useful error). Use Node 20 LTS (/opt/homebrew/opt/node@20/bin on PATH, or nvm use 20). Same class of failure as several other CLIs — if packaging dies silently, check Node first.