-
-
Save goetzc/cf1e31f8ec10ecf8d715ad980c62008c to your computer and use it in GitHub Desktop.
Reverts to the old marketplace in VSCodium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json | |
PRODUCT_PATH = "/usr/lib/code/product.json" | |
official_gallery = { | |
"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery", | |
"cacheUrl": "https://vscode.blob.core.windows.net/gallery/index", | |
"itemUrl": "https://marketplace.visualstudio.com/items", | |
} | |
with open(PRODUCT_PATH, "r") as f: | |
config = json.load(f) | |
print("Current values:") | |
print(json.dumps(config["extensionsGallery"], sort_keys=True, indent=2)) | |
config["extensionsGallery"]["serviceUrl"] = official_gallery["serviceUrl"] | |
config["extensionsGallery"]["cacheUrl"] = official_gallery["cacheUrl"] | |
config["extensionsGallery"]["itemUrl"] = official_gallery["itemUrl"] | |
with open(PRODUCT_PATH, "w") as f: | |
json.dump(config, f, indent=2) | |
print("New values:") | |
print(json.dumps(config["extensionsGallery"], sort_keys=True, indent=2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment