Created
December 6, 2020 20:37
-
-
Save computercam/b6a8d273750b9cf1e2fe3972271251a0 to your computer and use it in GitHub Desktop.
Revisions
-
Cam Sanders created this gist
Dec 6, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ #!/usr/bin/env bash [[ `uname` == "Linux" ]] && PRODUCT_JSON="/usr/lib/code/product.json" [[ `uname` == "Darwin" ]] && PRODUCT_JSON="/Applications/VSCodium.app/Contents/Resources/app/product.json" echo "edit the following file" echo "$PRODUCT_JSON" echo "" echo "find the following property" echo "extensionsGallery" echo "" echo "add the following lines to that property" echo '"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",' echo '"cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",' echo '"itemUrl": "https://marketplace.visualstudio.com/items"' sudo sed -E -i'' -e 's/"serviceUrl".*$/"serviceUrl": "https:\/\/marketplace.visualstudio.com\/_apis\/public\/gallery",/g' $PRODUCT_JSON sudo sed -E -i'' -e 's/"cacheUrl".*$/"cacheUrl": "https:\/\/vscode.blob.core.windows.net\/gallery\/index",/g' $PRODUCT_JSON sudo sed -E -i'' -e 's/"itemUrl".*$/"itemUrl": "https:\/\/marketplace.visualstudio.com\/items"/g' $PRODUCT_JSON