The Wayback Machine - https://web.archive.org/web/20220608181633/https://github.com/microsoft/vscode-discussions/discussions/14
Skip to content

Extension sponsorship #14

Extension sponsorship #14
Jun 3, 2022 · 3 comments · 2 replies

isidorn
Jun 3, 2022
Maintainer

We have introduced a sponsor field in the extension's package.json to allow extensions to opt into sponsorship.
If an extension opts-into this VS Code will render a Sponsor button in the extension details page.
We might add more UI cues in the future on VS Code side. For Marketplace we have this issue to track the work microsoft/vsmarketplace#398

We hope this will allow our users to fund the extensions that they depend on to improve the extension's performance, reliability, and stability.


Example:

An extension can add the following to their package.json

"sponsor": {
		"url": "https://github.com/sponsors/nvaccess"
}

Make sure to use latest vsce 2.9.1 when publishing your extension.

My tryout extension demonstrating this:

Screenshot 2022-06-02 at 11 11 48

Once users clicks on ❤️ Sponsor button she is taken to the sponsor link my extension provided.

Try it out and let us know what you think. Thanks!

Replies

3 comments
·
2 replies

I've added this to Calva 2.0.281. Though I don't see the button in VS Code. Nor in insiders. Did I do it wrong?

https://github.com/BetterThanTomorrow/calva/blob/published/package.json#L21-L23

0 replies

isidorn
Jun 3, 2022
Maintainer Author

@PEZ make sure to use latest vsce 2.9.1 when publishing your extension. I will make this more clear in my comment above.

Also the button will right now only be rendered in Insiders. In VS Code stable it should be shown when we release end of next week.

1 reply
@PEZ

Thanks! I still can't get it to work, however. For a long while it seemed to be because of a bug in npx where it refuses to use any other version than what it has cached somewhere. But even installing vsce 2.9.1 globally and using that, I still don't see a button.

Here's a VSIX I packaged on my machine.

calva-2.0.282-sponsors.zip

Is there something missing in it? Maybe I need to update my .vscodeignore?

isidorn
Jun 6, 2022
Maintainer Author

@PEZ thanks for doing this. I just tried from my VS Code Insiders and I see the sponsor button nicely rendered. Does it work for you now?

Screenshot 2022-06-06 at 09 59 00

1 reply
@PEZ

Checking, and I have the button now. That's great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants