I compiled VSCode on mac and was able to run the application but noticed that extensions don't work. Navigating to the extensions pane shows - 'No extensions found.'
So I did a grep on the source code for 'marketplace' and found - "build/lib/extensions.js: base: 'https://marketplace.visualstudio.com/_apis/public/gallery',
I assumed that's the URL for the marketplace and tried doing a curl on it to verify if the API sends back a list of available extensions. All I got back was a 404.
So, if I want to get extensions to work on my compiled version, do I have to change the URL? How to I get extensions to work?
It's not clear where the product.json
file is ...
If you are using VSCodium
on Mac the product.json
file is located at: /Applications/VSCodium.app/Contents/Resources/app
Edit the file using VSCodium:
code /Applications/VSCodium.app/Contents/Resources/app/product.json
If you search for "extensionsGallery" you should see:
Replace:
"extensionsGallery": {
"serviceUrl": "https://open-vsx.org/vscode/gallery",
"itemUrl": "https://open-vsx.org/vscode/item"
},
With:
"extensionsGallery": {
"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
"itemUrl": "https://marketplace.visualstudio.com/items"
},
So you now have this:
After restarting VSCodium, if we open the Extensions Marketplace:
If you search for your favourite extension or programming language, you will see all of them:
See "No extensions found" when running Visual Studio Code from source
You need to open the file https://github.com/Microsoft/vscode/blob/master/product.json on your fork and append the key:
"extensionsGallery": {
"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
"cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
"itemUrl": "https://marketplace.visualstudio.com/items"
}
See also the questions:
If you want to solve the issue for archlinux, have a look here => https://wiki.archlinux.org/index.php/Visual_Studio_Code , you have various possible options to solve the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With