VS Code Workspaces

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

Beta

VS Code Workspaces is in a beta state and may not be available for use in your Foundry enrollment. Contact a platform administer to enable access.

VS Code Workspaces is an Integrated Development Environment (IDE) for writing and collaborating on production-ready code in the Palantir platform. VS Code Workspaces leverages Microsoft's VS Code ↗, an open-source IDE for editing and managing code.

To access a VS Code workspace, first open an existing or new Python transforms or OSDK React repository in the Code Repositories application. From here, select the Open in VS Code option in the top right corner of the screen. This will take you to a VS Code workspace where your development environment will be set up automatically, allowing you to start working immediately.

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

VS Code Workspace is only available for supported workflows.

Palantir extension for Visual Studio Code

Aside from our in-platform instance of VS Code, you can also configure your local VS Code environment to integrate with Palantir. To do this, you will need to download and install the Palantir extension for Visual Studio Code, which provides native integrations with the Palantir platform, including many features you see in Code Repositories. The extension is in a beta state and is currently focused on delivering features for Python transforms. It is enabled by default inside VS Code Workspaces.

Learn more about the features of the Palantir extension for Visual Studio Code.

Supported workflows

VS Code Workspaces are still in development and may change as improvements are made over time. The following workflows are currently supported in both the local and in-platform versions of VS Code:

Python transforms

The Palantir extension for Visual Studio Code automatically sets up your Python environment at startup and enables features including the following:

  • Preview integration
  • Debugging support
  • Triggering dataset builds from inside your editor
  • Resource paths displayed with resource identifiers for easy navigation and reference
  • Automatic set up of your code environment
  • Snippets to effectively write repeating code

The "Preview" section in VS Code Workspaces.

OSDK React applications

You must have web hosting enabled to use VS Code workspaces for 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.

Other benefits of VS Code integration with React OSDK applications in Palantir include the following:

  • Full Ontology integration with OSDK to interact and code with your unique Ontology resources
  • Ability to configure a git repository with OAuth pre-configured
  • A CI setup to deploy your website on every release
  • Automatic set up of your node/npm environment
  • Automatic start of your development server for instant feedback when editing code

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

Comparison: VS Code Workspaces vs. Code Repositories

VS Code and Code Repositories have some overlap in intended use cases. However, their functionality differs in the following ways:

  • Code Repositories: A Palantir-built IDE that serves all code-management needs, such as editing, version control and change management, and continuous integration. Code Repositories is the intended platform tool for pull request reviews and repository management.
  • VS Code: A community-built IDE focused on improving the code editing experience.
    • VS Code Workspaces: A VS Code environment deployed on Palantir infrastructure and accessible from the Palantir platform.
    • Palantir extension for Visual Studio Code: An extension that you can install and use in your local VS Code application to integrate directly with your code repositories in Palantir.
FeatureCode RepositoriesVS Code WorkspacesPalantir extension for Visual Studio Code (through local VS Code application)
Transforms
Python transform previewYes (Code Assist)Yes (Local preview)Yes (Code Assist/Local preview)
Full data previewPreview data sample, with the ability to pre-filter the input sampleYesYes (Local preview only)
Debugger supportYesYesYes
Java transformsYesNoNo
OSDK React applications
Typescript Language ServerNoYesYes
Live reload code changesNoYesYes
Workflows
SQL integrationYesNoNo
Typescript function previewYesNoNo
IDE
Shell terminalNoYes (Remote host)Yes
Keybinding customizationNoYesYes
Public extension supportN/ANoYes, if allowed by your organization
AIP autocompleteYesNoNo