VS Code workspaces

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

VS Code workspaces is available by default in all Organizations where Code Workspaces is enabled.

VS Code workspaces bring the power of Microsoft's VS Code ↗ IDE directly into the Palantir platform. VS Code workspaces are development environments deployed on Palantir infrastructure that leverage Code Workspaces to provide an integrated development environment (IDE) for writing production-ready code. Whether you are building Python transforms, developing OSDK React applications, or working on compute modules (see a full list of supported workflows here), VS Code workspaces provide a familiar, powerful environment with automatic environment setup and seamless integration with Foundry resources.

Why use VS Code workspaces?

Learn more about the benefits of VS Code workspaces.

Get started with VS Code workspaces

Access a workspace

  1. Open an existing or new supported repository in VS Code.
  2. From Code Repositories, you can select Open in VS Code in the upper right corner (shown for supported repositories).
  3. At the time of creating a new repository, selecting VS Code will automatically bring you into a VS Code workspace.
  4. Your environment is ready, and you can start coding.

The "Open in VS Code" button in a code repository.

Make VS Code your default editor

You can make VS Code your default code editor for all supported repository types by navigating to the Settings tab within any repository and selecting Open repositories in a VS Code workspace by default.

Make "VS Code Default" Setting for supported repository types.

Note that some repositories will open in VS Code regardless of the default setting, since these repository types have been optimized for VS Code workspaces.

Supported workflows

VS Code workspaces support the workflows described in the sections below.

Python transforms

The Palantir extension automatically sets up your Python environment at startup and provides the following:

  • Preview integration with sample-less and code-defined filtering options
  • Debugging support with variable inspection
  • Build triggers from inside your editor
  • Resource paths displayed with resource identifiers for easy navigation
  • Automatic code environment setup
  • Code snippets for common patterns

The "Preview" section in VS Code Workspaces.

Learn more about Python transforms.

OSDK React applications

VS Code is integrated with Developer Console, allowing you to rapidly build React applications. You can create a VS Code workspace in the Code repository section of your Developer Console.

The option to use Code Repositories or VS Code Workspaces as a code environment in Developer Console.

Key features include:

  • Full Ontology integration with OSDK to interact with your unique Ontology resources
  • Git repository configuration with OAuth pre-configured
  • CI setup to deploy your website on every release
  • Automatic node/npm environment setup
  • Development server with live reload for instant feedback

An example of a VS Code environment showing React OSDK application code in Developer Console.

Learn more about OSDK React applications.

Other supported workflows


Reference: VS Code workspaces vs. Code Repositories

VS Code and Code Repositories serve different primary purposes:

  • Code Repositories: A Palantir-built IDE focused on all code-management needs, including editing, version control, change management, and continuous integration. This is the intended platform tool for pull request reviews and repository management.

  • VS Code: A VS Code environment deployed on Palantir infrastructure and accessible from the Palantir platform. Provides the familiar VS Code editing experience with automatic environment setup and integration with Foundry resources through the Palantir extension for Visual Studio Code.

  • Palantir extension for Visual Studio Code (local): An extension you install in your local VS Code application to integrate directly with Foundry. Provides preview, debug, and build capabilities for Python transforms while working on your local machine.

Feature comparison

FeatureCode RepositoriesVS Code workspacesPalantir extension for Visual Studio Code
Transforms
Python transform previewYesYesYes
Full data previewPreview data sample, with the ability to pre-filter the input sampleYesYes
Debugger supportYesYesYes
Java transformsYesNoNo
Unit testsYesYesYes
OSDK React applications
Typescript Language ServerNoYesYes
Live reload code changesNoYesYes
Python compute modules
Run and debug Python filesNoYesYes
Python libraries
Run and debug Python filesNoYesYes
Workflows
SQL integrationYesNoNo
Typescript function previewYesNoNo
IDE
Shell terminalNoYes (Remote host)Yes
Keybinding customizationNoYesYes
Public extension supportN/ANoYes, if allowed by your organization
AI AssistanceAIP AutocompleteYes, Continue extensionNo

Choose your development environment

You have two options for using VS Code with Foundry. For a detailed comparison to help you decide which is right for you, review our documentation on choosing between local development and VS Code workspaces.

The Palantir extension for Visual Studio Code provides native integrations with the Palantir platform, including many features you see in Code Repositories.

Learn more about the features of the Palantir extension.

Pricing

For VS Code workspace pricing information see Code Workspaces compute usage.