Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't Find certain extensions in CODE-OSS(Open source variant of Visual Studio Code)

I have been using Code-OSS in manjaro linux for some months now and this is the first time I am encountering this. (After I reinstalled manjaro) When I search for e.g, Java Extension Pack or Intellisense I don't get any result in the extension marketplace. I don't know if it's the problem of my setup or everyone is experiencing this. If you know of a solution please tell me.

Thanks in advance

like image 560
EX1T_ZER0 Avatar asked Oct 21 '20 12:10

EX1T_ZER0


People also ask

Why extension is not showing in VS code?

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 install OSS extension code?

vsix) file if possible, then bring up 'quick open' in OSS Code using Ctrl+Shift+P, search for "VSIX" and choose "Extensions: install from VSIX" to locate and install the downloaded . vsix file. After this, the extension was installed and usable in OSS Code, and is also configurable in the extension manager panel.

How do I find my Vscode extensions?

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.

Are all Vscode extensions open source?

While many extension authors have opted to release their source code under an open-source license, some extensions like Wallaby. js, Google Cloud Code, and the VS Code Remote Development extensions use proprietary licenses. At Microsoft, we open source our extensions whenever possible.


3 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 can also be fixed by copying product.json from an official build (in the .zip archvie, product.json is under /usr/share/code/resources/app/product.json which contains above lines). Depending on your distribution, exact location may vary.

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

like image 143
Clay Avatar answered Oct 17 '22 18:10

Clay


As an alternative to manually editing product.json or building whole visual-studio-code-bin from AUR you can use different AUR package - code-marketplace - that patches product.json from Code OSS package (code)

like image 34
Bartosz Błaszków Avatar answered Oct 17 '22 17:10

Bartosz Błaszków


Thank you @Clay for responding. I saw that post prior to me posting this question. Those bits of json code were already in my product.json file but still I was not able to get the extensions. Then I built the VISUAL STUDIO CODE (visual-studio-code-bin) from AUR and now its working normally as expected. I don't know what's the reason behind this,but that's how I fixed it.

Also if someone is reading this and wanna know about the different variants of VSCode then here is the archWiki page for VSCode.

like image 30
EX1T_ZER0 Avatar answered Oct 17 '22 18:10

EX1T_ZER0