Package Details: code-marketplace 1.87.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
Last Packager: sainnhe
Votes: 99
Popularity: 0.91
First Submitted: 2020-10-28 13:56 (UTC)
Last Updated: 2024-03-02 04:33 (UTC)

Dependencies (3)

Required by (0)

Sources (3)

Pinned Comments

sainnhe commented on 2023-08-13 13:33 (UTC)

Upgrading notes for v1.81.1

The code has been refactored in python, upgrading requires manual interventions:

pacman -Rdd code code-marketplace
pacman -S code code-marketplace

Don't reinstall them, uninstall and install these packages instead.

Since the code has been refactored, you can easily modify the code to upgrade to a new version by yourself if I cannot update this package in time. Simply download the latest tarball from code.visualstudio.com and extract them, then run update.py to update patch.json (The usage is documented in update.py), and run makepkg --skipchecksums -i to rebuild and install this package.

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

1 2 3 Next › Last »

Tinister commented on 2024-03-16 19:45 (UTC)

I use visual-studio-code-bin which stores its product.json at /opt/visual-studio-code/resources/app/product.json. I changed the one line in patch.py before (re)installing.

sainnhe commented on 2024-03-02 04:35 (UTC)

@peter.kehl: This package can only be used with extra/code in the official repository, not vscodium or vscodium-bin. I've added a check to the patching script.

peter.kehl commented on 2024-03-01 17:10 (UTC) (edited on 2024-03-01 17:10 (UTC) by peter.kehl)

The update on/around March 1, 2024 reported the following problem. (Unsure if the problem comes from code-marketplace, Code OSS or anything else, so I'm pasting the whole message).

Preparing...
Synchronizing package databases...
Refreshing core.db...
Refreshing extra.db...
Refreshing community.db...
Refreshing multilib.db...
Cloning vscodium-bin build files...
Generating vscodium-bin information...
Checking vscodium-bin dependencies...
Checking code-marketplace dependencies...
Warning: gnome-wallpapers: local (20201023-1) is newer than extra (20201020-2)
Resolving dependencies...
Checking inter-conflicts...
Cloning code-marketplace build files...
Generating code-marketplace information...

Building code-marketplace...
==> Making package: code-marketplace 1.87.0-1 (Fri 01 Mar 2024 07:55:55 AM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found code-marketplace.hook
  -> Found patch.py
  -> Found patch.json
==> Validating source files with md5sums...
    code-marketplace.hook ... Passed
    patch.py ... Passed
    patch.json ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "code-marketplace"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: code-marketplace 1.87.0-1 (Fri 01 Mar 2024 07:55:59 AM)
==> Cleaning up...

Building vscodium-bin...
==> Making package: vscodium-bin 1.87.0.24060-1 (Fri 01 Mar 2024 07:56:02 AM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found vscodium-bin.desktop
  -> Found vscodium-bin-uri-handler.desktop
  -> Found vscodium-bin.install
  -> Found vscodium-bin.sh
  -> Found vscodium-bin-wayland.desktop
  -> Downloading VSCodium-linux-x64-1.87.0.24060.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

  0  123M    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  2  123M    2 2723k    0     0  1830k      0  0:01:09  0:00:01  0:01:08 3621k
  8  123M    8  9.9M    0     0  4111k      0  0:00:30  0:00:02  0:00:28 5842k
 17  123M   17 21.3M    0     0  6261k      0  0:00:20  0:00:03  0:00:17 7938k
 29  123M   29 36.6M    0     0  8368k      0  0:00:15  0:00:04  0:00:11  9.7M
 45  123M   45 55.8M    0     0  10.1M      0  0:00:12  0:00:05  0:00:07 11.7M
 62  123M   62 76.7M    0     0  11.8M      0  0:00:10  0:00:06  0:00:04 14.8M
 79  123M   79 97.8M    0     0  13.0M      0  0:00:09  0:00:07  0:00:02 17.5M
 94  123M   94  116M    0     0  13.7M      0  0:00:08  0:00:08 --:--:-- 19.0M
100  123M  100  123M    0     0  14.0M      0  0:00:08  0:00:08 --:--:-- 20.1M
==> Validating source files with sha256sums...
    vscodium-bin.desktop ... Passed
    vscodium-bin-uri-handler.desktop ... Passed
    vscodium-bin.install ... Passed
    vscodium-bin.sh ... Passed
    vscodium-bin-wayland.desktop ... Passed
==> Validating source_x86_64 files with sha256sums...
    VSCodium-linux-x64-1.87.0.24060.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting VSCodium-linux-x64-1.87.0.24060.tar.gz with bsdtar
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "vscodium-bin"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: vscodium-bin 1.87.0.24060-1 (Fri 01 Mar 2024 07:56:48 AM)
==> Cleaning up...

Checking keyring...
Checking integrity...
Loading packages files...
Checking file conflicts...
Checking available disk space...
Traceback (most recent call last):
  File "/usr/share/code-marketplace/patch.py", line 51, in <module>
    restore()
  File "/usr/share/code-marketplace/patch.py", line 34, in restore
    with open(product_path, "r") as product_file:
         ^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/code/product.json'
Error while configuring code-marketplace
Error: code-marketplace: command failed to execute correctly
Configuring code-marketplace...
Traceback (most recent call last):
  File "/usr/share/code-marketplace/patch.py", line 49, in <module>
    patch()
  File "/usr/share/code-marketplace/patch.py", line 19, in patch
    with open(product_path, "r") as product_file:
         ^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/code/product.json'
Error while configuring code-marketplace
Error: code-marketplace: command failed to execute correctly
Upgrading vscodium-bin (1.86.2.24057-1 -> 1.87.0.24060-1)...
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
==> NOTE: Custom flags should be put directly in: ~/.config/codium-flags.conf
Running post-transaction hooks...
Arming ConditionNeedsUpdate...
Updating the desktop file MIME type cache...
[vscodium-bin-marketplace] Patching product.json...
Transaction successfully finished.

dgk commented on 2023-11-28 19:54 (UTC) (edited on 2023-11-28 19:56 (UTC) by dgk)

a little documentation for those wanting to use this nice! patch to irritating problem.

run sudo /usr/share/code-marketplace/patch.py code-marketplace patch just once. close all open windows of oss-codioum. restart and it should now be functional. After that my understanding is that it will watch for changes to /usr/lib/code/product.json and run this again. That's not documented I just cloned the aur repo and took a look at the .hook file.

btw found this package after reading this post [https://stackoverflow.com/a/65035969/4695378]

UnknownError commented on 2023-08-27 20:14 (UTC)

The latest version of Pylance doesn't seem to work anymore

sainnhe commented on 2023-08-13 13:33 (UTC)

Upgrading notes for v1.81.1

The code has been refactored in python, upgrading requires manual interventions:

pacman -Rdd code code-marketplace
pacman -S code code-marketplace

Don't reinstall them, uninstall and install these packages instead.

Since the code has been refactored, you can easily modify the code to upgrade to a new version by yourself if I cannot update this package in time. Simply download the latest tarball from code.visualstudio.com and extract them, then run update.py to update patch.json (The usage is documented in update.py), and run makepkg --skipchecksums -i to rebuild and install this package.

yxzhou commented on 2023-07-16 16:32 (UTC)

I have been struggling to install Pylance for a long time, thank you very much

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.