Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for not being able to download VS extensions anymore #2807

Open
h8ku opened this issue Mar 5, 2025 · 0 comments
Open

Fix for not being able to download VS extensions anymore #2807

h8ku opened this issue Mar 5, 2025 · 0 comments

Comments

@h8ku
Copy link

h8ku commented Mar 5, 2025

https://www.cursor.com/how-to-install-extension

This link tells you to download from their marketplace, but download links there don't show up anymore.

Cursor should add support to paste in a marketplace link and have Cursor download that extension.

For the time being, others can convert this code to a bookmarklet using a tool for that and then use it to download when you're on the appropriate page

(function() {
    const URL_VSIX_PATTERN = 'https://marketplace.visualstudio.com/_apis/public/gallery/publishers/${publisher}/vsextensions/${extension}/${version}/vspackage';

    let itemName = new URL(window.location.href).searchParams.get('itemName');
    let [publisher, extension] = itemName.split('.');
    let version = document.querySelector('#versionHistoryTab tbody tr .version-history-container-column').textContent;

    let url = URL_VSIX_PATTERN.replace('${publisher}', publisher)
                              .replace('${extension}', extension)
                              .replace('${version}', version);

    window.open(url, '_blank');
})();

Reference

https://gist.github.com/wanglf/7acc591890dc0d8ceff1e7ec9af32a55

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

No branches or pull requests

1 participant