Skip to content

Tsuk1ko/extension-config-patcher

Repository files navigation

Extension Config Patcher

An extension that patches the editor's configuration to enable access to the VS Code extension marketplace for non-official VS Code editors (e.g. Cursor).

It will automatically check and apply patches when the editor starts up.

After patching or restoring, you need to restart the editor (not reload window) for the changes to take effect.

Commands

  • patch: Apply patch
  • restore: Restore to the original configuration

Uninstall

Uninstalling the extension will not automatically restore the configuration.

If you need to restore the configuration, please manually run the restore command before uninstalling the extension.

Details

The extension modifies the resources/app/product.json file by updating following configuration:

{
  "extensionsGallery": {
    "serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
    "resourceUrlTemplate": "https://{publisher}.vscode-unpkg.net/{publisher}/{name}/{version}/{path}"
  }
}

This configuration allows the editor to connect to the official VS Code extension marketplace, allowing you to search and install extensions that were previously unavailable in your editor's marketplace.

Original configuration file will be backup to resources/app/product.bak.json.

About

Patch extension configuration to allow installation of VS Code extensions that are not available in other editors' marketplace

Topics

Resources

License

Stars

Watchers

Forks

Contributors