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
2
u/nykyrt 1d ago
Agents window does support workspaces! It wont let you initiate a new session in a workspace for the first time, ao open the workspace in regular vs code, start a chat, be sure to pick copilot harness. Then the workspace will magically appear in agent’s window