Global Branching in VS Code workspaces is supported for Python Transforms repositories and TypeScript v1 function repositories. For the full list of resource types that support Global Branching, review the integrations documentation.
When working in VS Code, you can create and access global branches and use other supported workflows for Python transforms and TypeScript v1 function repositories. These workflows are available both in VS Code workspaces deployed on Palantir infrastructure and in local VS Code through the Palantir extension for Visual Studio Code.
A repository in VS Code has two kinds of branches:
main branch of the repository.In the Palantir extension, the tabbed branch selector lets you create and check out both Code Repositories branches and global branches from one place.
Learn more about branch options in Code Repositories..
When you open a supported repository in a VS Code workspace, the branch taskbar appears as a blue bar at the bottom of the editor on the Code page. The taskbar displays your active branch and keeps it in sync with VS Code. The branch reflected in the terminal, the Command Palette, and the editor always matches the branch shown in the taskbar.
The taskbar is available in VS Code workspaces only. In local VS Code, use the Palantir extension to view and switch your branch.
You can create a global branch from any of the following entry points:
Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux), then run Palantir: Create Global Branch.From any of these entry points, the create branch dialog opens.
You can check out an existing global branch from any of the following entry points:
Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux), then run Palantir: Checkout Global Branch.Aside from the branch taskbar, each entry point opens the same branch picker, which groups branches into sections to help you find the relevant branch quickly:
main branch
The following behaviors apply when checking out a branch:
You can develop Python transforms on a global branch. The preview and build panels run against the branch you currently have checked out.
Learn more about developing Python transforms.
For TypeScript v1 function repositories, these panels also operate in the context of your active global branch:
You can publish function versions on a global branch by tagging them. Tag a version from the Tags page in your VS Code workspace or with the Tag Version action in the Palantir extension. While you are on a global branch, the tag is created against that branch.
Learn more about developing, publishing, consuming, rebasing, and merging functions on a branch..