Skip to content

feat: add clone repository option to folder picker#297995

Merged
benibenj merged 1 commit intomainfrom
benibenj/copilot-worktree-2026-02-26T12-41-08
Feb 26, 2026
Merged

feat: add clone repository option to folder picker#297995
benibenj merged 1 commit intomainfrom
benibenj/copilot-worktree-2026-02-26T12-41-08

Conversation

@benibenj
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings February 26, 2026 13:12
@vs-code-engineering
Copy link

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@lszomoru

Matched files:

  • extensions/git/src/commands.ts

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a "Clone..." option to the folder picker in the Agent Sessions window, allowing users to clone a Git repository and automatically select it as the working folder.

Changes:

  • Added clone repository functionality to the folder picker widget
  • Updated git.clone command to return the cloned repository path

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/vs/sessions/contrib/chat/browser/folderPicker.ts Added ICommandService injection, _cloneRepository method, and UI item for clone action
extensions/git/src/commands.ts Changed git.clone return type from void to string | undefined to support programmatic access to cloned path

@benibenj benibenj merged commit e30f285 into main Feb 26, 2026
24 checks passed
@benibenj benibenj deleted the benibenj/copilot-worktree-2026-02-26T12-41-08 branch February 26, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants