Code - oss marketplace

Good morning all,

I installed code - oss on my computer and I can no longer activate the marketplace since v1.58.0-1.

You too ?

image

2 Likes

Yepp, same here.
The Micro$oft one still works though.

it’s a bit special, if we have to add each dependency by hand …

I am having the same issue.

It is due to a CORS issue:

Access to XMLHttpRequest at ‘https://open-vsx.org/vscode/gallery/extensionquery’ from origin ‘vscode-file://vscode-app’ has been blocked by CORS policy: Request header field x-market-user-id is not allowed by Access-Control-Allow-Headers in preflight response.

You can see this if you open the developer tools (Help > Toggle Developer Tools) and navigate to the Console/Network tab.

Yes, I saw each other by testing my proxy …
But I do not see how to solve the worry.

I’ve uninstalled vscode and reinstall it following this tutorial from
www-jeremymorgan-com-tutorials-golang-golang-manjaro-linux

I also noticed this issue, but most of the dependencies I want are already installed. You can always install it from the command line in the meanwhile, just download the .vsix file from the marketplace website, then from your terminal you can enter:

code --install-extension nameofextension.vsix

Mind the spaces in between code and the --install-extension, as well as the space in between --install-extension and the name of the .vsix file.

Edit the file product.json in folder /usr/lib/code replacing this:

	"extensionsGallery": {
		"serviceUrl": "https://open-vsx.org/vscode/gallery",
		"itemUrl": "https://open-vsx.org/vscode/item"
	},

with this:

	"extensionsGallery": {
		"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
		"itemUrl": "https://marketplace.visualstudio.com/items"
	},

Tested and working well.

2 Likes

More or less this exact change is conveniently packaged in the code-marketplace AUR package, and it’ll apply the changes when code is updated, so you don’t need to worry about that too.

1 Like

This did the trick, thanks! Marketplace is working.