Repository navigation
Description
- macOS Federico Brancasi (@federicobrancasi)
- Windows Dmitriy Vasyura (@dmitrivMS)
- Linux Hawk Ticehurst (@hawkticehurst)
Complexity: 5
Authors: Sandeep Somavarapu (@sandy081)
In the editor window, a chat can now work in its own git worktree, and the window's folder follows the chat you open: Explorer, Source Control, editors and language features move to that chat's worktree. Judge whether it guides you to worktrees when you work in parallel, and whether the whole workbench follows the chat you open, reliably.
Explore the scenarios freely; they aren't step-by-step. Test with Copilot; do a short sanity pass with Claude and Codex.
Setup
- Latest Insiders with a fresh
--user-data-dir. Open a window with a single local folder that is a git repository with a commit and some code (for example a small TypeScript project). - Turn on in settings, then reload the window:
"chat.editorWindow.enableWorktree": true
Scenario 1: Start working in a worktree
Start a chat in the folder that changes some files. Then start another new chat in the folder and send its first request.
Expected:
- Before it sends, a Work in Parallel callout points at the chat's worktree control and offers Use New Worktree and Continue in Folder.
- With Use New Worktree, the chat works in a new worktree on its own branch, and the folder moves there. Your folder's own files are untouched.
- A Folder Location callout in the status bar explains that the folder is now at that location. Got It closes it.
- The Explorer and Source Control show the new worktree's files, changes and branch.
- Later new chats in the folder start with your answer preselected (New Worktree in the chat input).
Scenario 2: The workbench follows the chat
Have a few chats in different worktrees and one in the folder itself. Switch between them by opening them from the Chat view's sessions. In each, open a few files and a diff, search, use Go to Definition and Find All References, and look at Source Control.
Expected: after each switch, everything works for that chat's location:
- Explorer, search, the title bar and the status bar show the location. While at a worktree, the Explorer shows a badge.
- Go to Definition and Find All References work in that location's files.
- Source Control shows one repository with that location's changes, diffs and branch.
- The editors you had open there (files, diff editors, canvases) come back when you return to it.
- After a reload, the window is still at the same location.
Scenario 3: Switch from the status bar
Switch the folder with the Folder Location entry in the status bar: worktrees are under Worktrees.
Expected: the folder moves to the location you pick, which is marked as current, and the workbench follows as in Scenario 2.
Scenario 4: Exploratory testing
Work with several chats in worktrees and in the folder, for a real task: edit, run, commit, and switch between them often.
- Also switch while something runs, such as a debug session or a task (for example
sleep 300): you are asked "Switch the folder to '<location>'?" with Stop and Switch.
Expected: you always know where the folder is, and nothing from one location leaks into another.
Written by GitHub Copilot on behalf of Sandeep Somavarapu (@sandy081)
Activity