"No extensions found" when running Visual Studio Code from source

Vikrant Chaudhary picture Vikrant Chaudhary · May 10, 2016 · Viewed 19.8k times · Source

When I try to install any extension in Visual Studio Code (i.e., by pressing Ctrl+P and then running ext install RustyCode), I get a message that No extensions found.

However, this only happens when I run VS Code directly from source repository. I.e., after:

git clone https://github.com/Microsoft/vscode.git
cd vscode
git checkout 1.0.0
scripts/code.sh

But, if I run VS Code from official builds, then I'm able to install extensions.

So, how can I enable downloading and installing extensions from Visual Studio Marketplace when I run VS Code directly from source repository? (Is Visual Studio Marketplace integration bundled separately in official builds?)

I'm on Ubuntu/Linux.

Answer

Vikrant Chaudhary picture Vikrant Chaudhary · May 15, 2016

This can be fixed by adding following to product.json:

"extensionsGallery": {
    "serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
    "cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
    "itemUrl": "https://marketplace.visualstudio.com/items"
}

(This is can also be fixed by copying product.json from an official build (in the .zip archvie, product.json is under resources/app) which contains above lines).

More information: https://github.com/Microsoft/vscode/issues/1557