How to publish an extension in VSX.org
Vsx Registry is an open source VS Code marketplace that host extensions.
Cursor uses VSX instead of the Microsoft Marketplace to install extension.
Skip Step 3 and 4 if already created an account in Eclipse Foundation and logged in on your terminal to vsx.
VSX
1. Install Open VSX publishing tool
npm install -g ovsx 2. Build .vsix package
(Optional) Install vsce to create .vsix
npm install -g vsceRun
node esbuild.js --production
# or
vsce packageThis will create your-extension.vsix
3. Create Account at open-vsx.org
- Go to open-vsx.org and create account
- Create an account at Eclipse Foundation . Needed for signing terms for publishing and link with Github Account
- Go back to open-vsx.org, go to publish -> profile, then sign Eclipse Foundation Open VSX Publisher Agreement
- Create a Namespace, which is your publisher name. Go to publish -> namespaces. Follow the links to create your namespace. Here direct link to claim your namespace and be verified link
- Wait to be approved
4. Authenticate via CLI to VSX
- Go to open-vsx.org -> publish -> access token
- Create a new token
- Save token
Authenticate via CLI:
ovsx login <vsx-login-name> Then it wil ask your token, paste your token.
Should get a message like this:
- 🚀 PAT valid to publish at joseavr
5. Publish your extension
Run command
ovsx publishVSCE
Vscode Marketplace from Microsoft
Check if logged already
vsce ls-publishersIf not then go to step 1
1. Renew token
- Go to https://dev.azure.com/publisher-name/_usersSettings/tokens
- Click to create a new token
- Give full permission
Then login
vsce login <publisher-name>Then override to create a new token
Do you want to overwrite its PAT? [y/N]
> y2. Publish Extension
Edit the package.json by upgrading the version
Then publish
vsce publishCheck your published extension in the marketplace: https://marketplace.visualstudio.com/manage/publishers/your-publisher-name