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.

LinkIconVSX

LinkIcon1. Install Open VSX publishing tool

npm install -g ovsx 

LinkIcon2. Build .vsix package

(Optional) Install vsce to create .vsix

npm install -g vsce

Run

node esbuild.js --production
# or
vsce package

This will create your-extension.vsix

LinkIcon3. 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

LinkIcon4. 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

LinkIcon5. Publish your extension

Run command

ovsx publish

LinkIconVSCE

Vscode Marketplace from Microsoft

Check if logged already

vsce ls-publishers

If not then go to step 1

LinkIcon1. Renew token

Then login

vsce login <publisher-name>

Then override to create a new token

Do you want to overwrite its PAT? [y/N]
> y

LinkIcon2. Publish Extension

Edit the package.json by upgrading the version

Then publish

vsce publish

Check your published extension in the marketplace: https://marketplace.visualstudio.com/manage/publishers/your-publisher-name