r/GithubCopilot • u/brahmaav • 1d ago
Suggestions [Feature Request / Feedback] Multi-root .code-workspace support in the VS Code Agents window (especially when enterprise policy blocks autoApprove)
Love the focused workflow of the new VS Code Agents window for analyzing code across files, but hitting a major wall with multi-repo setups in an enterprise environment—hoping someone from the VS Code / Copilot team can chime in on whether multi-root support is on the near-term roadmap.
The setup & blocker:
• Our project spans multiple Git repos and local reference folders that normally live together in a .code-workspace file.
• Because the Agents window currently enforces a single-folder root (and doesn't support .code-workspace files), I tried creating Windows directory junctions (mklink /J) inside a single parent folder so everything appears under one root without duplicating repos.
• However, Copilot resolves the underlying physical path (realpath) on disk, sees that the target folders live outside the opened root, and triggers a permission prompt on every single file read—even with Assisted Permissions turned on.
• Because I’m on a corporate-managed machine, enterprise policy disables autoApprove overrides, so I'm stuck either manually clicking "Allow" dozens of times per session or abandoning the Agents window for the standard editor.
Questions for the team / community:
- Is multi-root .code-workspace parity (tracked in microsoft/vscode#311148) planned for the Agents window soon?
- Could Assisted Permissions be updated to recognize explicitly trusted subdirectories/junctions within the current session without requiring a global autoApprove policy override?
View all comments
Show parent comment
1
u/Valieo 1d ago
A gotcha here that i had to just resolve on my own though - having multiple git repos in a workspace like this caused the new harness tonspend significant time before each message sent doing git checkpointing on every repo in scope. It made my 11 repo workspace take 50ish seconds to respond to first message in chat. My worksround was to just open a parent folder in vscode instead of using a workspace, but now i have to move my repos around to keep what i want in scope