Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.

like image 216
Vikrant Chaudhary Avatar asked May 10 '16 15:05

Vikrant Chaudhary


People also ask

Why are my extensions not working in Vscode?

The solution was to go to Windows PowerShell and open Visual Studio Code, then go to the extensions and restart the Remote - WSL extension, and go back to WSL. It then started working immediately.

How do I enable extensions in Vscode?

You can browse and install extensions from within VS Code. Bring up the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of VS Code or the View: Extensions command (Ctrl+Shift+X). This will show you a list of the most popular VS Code extensions on the VS Code Marketplace.


2 Answers

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

like image 72
Vikrant Chaudhary Avatar answered Sep 20 '22 05:09

Vikrant Chaudhary


If you want to do the same for archlinux, have a look here => https://wiki.archlinux.org/index.php/Visual_Studio_Code , you have various possible options to solve the problem.

like image 21
antham Avatar answered Sep 21 '22 05:09

antham