Palantir extension for Visual Studio Code

VS Code workspaces and the Palantir extension for Visual Studio Code are not affiliated with or endorsed by Microsoft.

The Palantir extension for Visual Studio Code aims to integrate many features you see in Code Repositories with VS Code. The extension's features are currently focused on Python transforms.

Access the extension

The Palantir extension for VS Code can be used either as part of a VS Code workspace in the Palantir platform, or as a downloadable extension for your local version of VS Code.

From a VS Code workspace

The Palantir extension is available by default in VS Code workspaces. Review the VS Code workspaces documentation to learn more.

The "Preview" section in VS Code Workspaces.

Locally

The Palantir extension can also be used in local development, and is the endorsed method for local development for Python transforms.

You may not have the required permissions to work with the extension locally even if it is available on your enrollment. A platform administrator is required to enable local extension use, and they can grant user access through Control Panel settings.

In order to preview locally, users must have the above Control Panel settings enabled and have downloader permissions on the preview inputs, which are s3-proxy:datasets-read and api:datasets-read. These are privileged operations that allow users to download entire datasets locally, and should be granted with care. In cases where users cannot be granted this permission, the VS Code developer experience is still available through Code Workspaces, which guarantee strict data control.

1. Download the Palantir extension

  1. Navigate to any existing repository in Code Repositories, and select the settings icon next to the VS Code button in the top right corner of your screen.
  2. Choose Local VS Code from the dropdown menu to change the default button language.
  3. Select the updated Local VS Code button and follow the instructions in the pop-up window to download the extension.

Note: You only need to download the extension if you have never installed it before.

The "Open in VS Code" button inside Code Repositories.

The dialog to download the extension or open in Code Repositories.

The Palantir extension for Visual Studio code is not yet available in the Visual Studio Code Marketplace. You can only download the extension from the Palantir platform at this time.

2. Install the extension

Install the extension by performing one of the following steps:

  • Drag and drop the VSIX file into the VS Code's Extensions sidebar, or
  • Use the command Extensions: Install from VSIX...

3. Open a Palantir code repository

Once the Palantir extension is installed, you should see the Palantir logo on the VS Code sidebar. From the sidebar, you can do one of the following:

  • Open a Palantir repository that you already cloned, or
  • Select Clone a repository to clone a new Palantir repository. To do this, open a Palantir repository and copy the git remote URL link.

Review other feature of the Palantir extension for Visual Studio Code..