Use VS Code's worktree InputBox UI when checking out a PR in a worktree#8721
Draft
Use VS Code's worktree InputBox UI when checking out a PR in a worktree#8721
Conversation
…t: Create Worktree Agent-Logs-Url: https://github.com/microsoft/vscode-pull-request-github/sessions/a494f95c-24ab-4aca-b78a-cd2ee4cca5a3 Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update checkout UI for worktree to match built-in feature
Use VS Code's worktree InputBox UI when checking out a PR in a worktree
May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
"Checkout in Worktree" opened the OS save dialog, which is awkward (especially on Windows) and inconsistent with VS Code's built-in
Git: Create Worktree...flow that uses an inlineInputBox.Changes —
src/github/worktree.tsshowSaveDialogwithcreateInputBoxincheckoutPRInWorktree, mirroring the built-in worktree UI: pre-filled editable path, prompt "Please provide a worktree path",ignoreFocusOut, and an inline folder-picker button (QuickInputButtonLocation.Inline,foldercodicon) that opensshowOpenDialogto pick a parent directory and re-joins the worktree name.<parentDir>/<repoBasename>.worktrees/pr-<number>(was<parentDir>/pr-<number>), matching what users see fromGit: Create Worktree....pr-<number>segment viavalueSelectionfor quick rename.repository.state.worktreesandInputBoxValidationSeverity.Warning(non-blocking, matching built-in).Public signature of
checkoutPRInWorktreeand the subsequent "open in current/new window" prompt are unchanged.