Package Details: code-marketplace 1.70.0-2

Git Clone URL: https://aur.archlinux.org/code-marketplace.git (read-only, click to copy)
Package Base: code-marketplace
Description: Enable vscode marketplace in Code OSS
Upstream URL: https://marketplace.visualstudio.com/vscode
Licenses: unknown
Submitter: sainnhe
Maintainer: sainnhe (zjuyk)
Last Packager: sainnhe
Votes: 66
Popularity: 3.30
First Submitted: 2020-10-28 13:56 (UTC)
Last Updated: 2022-08-06 05:16 (UTC)

Dependencies (4)

Required by (0)

Sources (2)

Pinned Comments

sainnhe commented on 2021-04-05 08:00 (UTC) (edited on 2021-04-09 10:08 (UTC) by sainnhe)

This package basically installs a hook that will patch /usr/lib/code/product.json to use vscode marketplace every time community/code is updated.

There are some extensions in vscode marketplace that don't work with Code OSS (e.g. pylance and remote-ssh), you can install code-features (thanks to @Lightsword) or code-features-insiders (thanks to @coxackie_) to unblock them.

Btw, you may also be interested in code-icons by @coxackie which will replace the icon of Code OSS with VSCode's.

Latest Comments

jongeduard commented on 2022-05-30 21:37 (UTC)

@sainnhe Thanks, I experimented a bit with the JSON. It's clear to me now that "extensionsGallery" is really 1 JSON object with unique names, and trying to make an array [] behind the "serviceUrl" and "itemUrl" with multiple URL strings inside it did not have success. :( :P

It's only the "linkProtectionTrustedDomains" which easilly accepts more URLs because it already is an array.

Adding the entire thing below each other did also not work, VS Code just chooses the last one of those (actually already surprising that VS Code did not crash on it, since the JSON like that with duplicate names is actually not even a valid one)

So nope, no luck. Uninstalling your extension and reinstalling it is simply the most easy way to switch. At least I can also update my extensions from Open-VSX that way.

sainnhe commented on 2022-05-28 00:41 (UTC)

@jongeduard: As far as I know, the built-in extension manager of vscode doesn't support this feature. Vscode will read data in product.json on startup and the values it used won't be changed until next startup.

Maybe you can find out if there are any third-party extension managers that support this feature, or you can directly download the vsix file of this extension and install it manually.

jongeduard commented on 2022-05-27 20:47 (UTC) (edited on 2022-05-27 20:49 (UTC) by jongeduard)

Hi sainnhe,

Do you know if there exists any possibility to configure things in such a way that we have both the MSFT Marketplace and open-vsx.org in the product.json?

The reason I am asking this is because of the free-omnisharp-vscode extension, which is a fork of the default OmniSharp extension with the difference that it uses Samsung's MIT licenced netcoredbg instead of the closed source vsdbg debugger from Microsoft. But free-omnisharp-vscode is only on open-vsx.org, which I like to give a try as well.

Oreeeee commented on 2022-05-10 22:53 (UTC)

Thank you

coxackie commented on 2021-04-06 11:21 (UTC)

many thanks @sainnhe - this is great work.

If anyone is interested, and based on sainnhe's PKGBUILDs, I also created code-icons to replace the (very ugly, in my opinion) code - oss icon with nice vscode ones. Works completely independently of the packages here.

sainnhe commented on 2021-04-05 08:00 (UTC) (edited on 2021-04-09 10:08 (UTC) by sainnhe)

This package basically installs a hook that will patch /usr/lib/code/product.json to use vscode marketplace every time community/code is updated.

There are some extensions in vscode marketplace that don't work with Code OSS (e.g. pylance and remote-ssh), you can install code-features (thanks to @Lightsword) or code-features-insiders (thanks to @coxackie_) to unblock them.

Btw, you may also be interested in code-icons by @coxackie which will replace the icon of Code OSS with VSCode's.

sainnhe commented on 2020-12-05 00:40 (UTC) (edited on 2020-12-05 00:50 (UTC) by sainnhe)

@sperg512: OK. But path detection is still necessary, see 5fd1ae9.

You can consider adding it to vscodium-bin-marketplace.

sperg512 commented on 2020-12-04 13:25 (UTC) (edited on 2020-12-04 13:27 (UTC) by sperg512)

Yeah it still fails to patch /usr/lib/code/product.json. I think I'll create vscodium-bin-marketplace later, thanks!

You can revert it back to the previous commit, I've got this downloaded so I can just use the patch things.

sainnhe commented on 2020-12-04 08:21 (UTC) (edited on 2020-12-04 08:23 (UTC) by sainnhe)

@sperg512: OK, I decided to add support for vscodium in this package, so we can painlessly switch between code oss and vscodium. See 66791c2.

But I haven't tested this package in vscodium-git yet, feedback is welcome.

sainnhe commented on 2020-12-04 07:09 (UTC)

@sperg512: I don't use vscodium-bin, so I cannot guarantee the maintenance of this package.

I think vscodium-bin-marketplace should be created and maintained by the users of vscodium-bin, instead of me.

Maybe you can try to create this package. It should be very easy, all you need to do is simply replacing the path and regenerate the patch file.

sperg512 commented on 2020-12-04 01:13 (UTC)

The hook doesn't function for vscodium, as it has a different path for its product.json. Specifically, for vscodium-bin, it's /usr/share/vscodium-bin/resources/app/product.json.

It might also be different for some other versions, but seeing how popular vscodium-bin is, you should probably make a separate package for it, maybe called vscodium-bin-marketplace. Thanks