Code OSS - VSCode unbranded: use Microsoft store
How to use MS extension store in unbranded VSCode edition (e.g. Manjaro code OSS)
$ sudo vim /usr/lib/code/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"
},
Source: github comment
The following script should replace that automatically (maybe even create a hook within arch linux' software upgrade process?):
#!/bin/bash productJsonFile="/usr/lib/code/product.json" tmpFile=$(mktemp) jq '.extensionsGallery = { "serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery", "cacheUrl": "https://vscode.blob.core.windows.net/gallery/index", "itemUrl": "https://marketplace.visualstudio.com/items" }' \ $productJsonFile > $tmpFile && mv $tmpFile $productJsonFile chmod 644 $productJsonFile