To use Artifactory as the extension gallery for your IDE, you need to modify the product.json file to point to Artifactory. You can connect VSCode, Cursor, or Windsurf.
Prerequisite: Before connecting your IDE to Artifactory, you must have an existing AI Editor Extensions repository in Artifactory. For more information, see Create an AI Editor Extension Repository.
Important
This configuration modifies
product.json, and is a sensitive change. It is highly recommended to make a backup of the original file before editing.
Requirements: Write permissions for all parent folders nesting product.json, and privileges to open and edit product.json. The file locations and parent folders vary by OS and IDE. For more information, see product.json File Locations
To connect your IDE to Artifactory:
Disable Automatic Updates
Automatic IDE updates will cause the marketplace connection to revert from Artifactory to the default. Before configuring Artifactory as your marketplace connection, disable automatic updates to prevent overwriting your changes.
To disable automatic updates:
Open your
settings.jsonfile in a text editor. You can open the file by searching for workbench settings in the Command Palette:Linux and Unix (macOS): Cmd+Shift+P
Windows: Ctrl+Shift+P
Add the following line to the
settings.jsonfile:"update.mode":"none"
Save your changes and close the file.
Set Artifactory as the Marketplace Connection
To configure your IDE to connect to Artifactory, set the serviceUrl destination to the Artifactory proxy of the extensions marketplace.
To edit the serviceURL to connect to Artifactory:
Open the
product.jsonfile in a text editor. The file location varies by OS, for example:Linux and Unix (macOS):
/Applications/Visual Studio Code.app/Contents/Resources/appWindows:
C:\Program Files\Microsoft VS Code\resources\app
In the
product.jsonfile, edit theextensionsGallery-serviceUrlobject as follows:"extensionsGallery": { ... "serviceUrl":"https://[JFrogPlatformURL]/artifactory/api/aieditorextensions/<REPO_NAME>/_apis/public/gallery", ... }Where:
[JFrogPlatformURL]: Your orgainzation's Artifactory URL<REPO_NAME>: The name of the target repository
For example:
"extensionsGallery": { ... "serviceUrl":"https://company.jfrog.io/artifactory/api/aieditorextensions/vscode-remote/_apis/public/gallery", ... }Save the changes to your file.
Close all instances of your IDE and restart the program.
Note
You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.
Next steps:
product.json File Locations
The following table provides the locations of the product.json file for each supported IDE and OS. Use this information to verify the parent folders that you need write access to.
IDE | OS |
|
|---|---|---|
VSCode | Linux and Unix (macOS) |
|
Windows |
| |
Cursor | Linux and Unix (macOS) |
|
Windows |
| |
Windsurf | Linux and Unix (macOS) |
|
Windows |
|