In this article
A shared editor window does not erase project boundaries; identify the execution root, qualified paths, folder settings, and validation target before changing code.
A multi-root VS Code workspace places several project folders inside one editor window. Those folders can retain distinct settings, tasks, repositories, and dependency environments. An agent session also has its own execution scope. Understanding the difference prevents a common error: reading context from one project while running checks or applying changes in another similarly named directory.
Folder roots remain distinct resources
The Explorer can display several roots with overlapping internal filenames. A path such as a package manifest or configuration file is ambiguous without its owning root. Use root-qualified paths when describing evidence or asking for an edit. This is particularly important when a reference implementation and a target application are open together. Similar structure makes comparison convenient while also making it easy to apply the right idea to the wrong project.
Primary reference: VS Code: Multi-root Workspaces.
Settings have workspace and folder scopes
VS Code distinguishes user, workspace, and applicable folder settings. Some resource-oriented settings can vary by folder, while editor-wide behavior cannot simply take different values for every root simultaneously. Inspect the relevant scope when a formatter or language service behaves differently between projects. A folder’s configuration is not proof that an agent process launched elsewhere inherits it. Keep editor settings and command-line environment assumptions explicit rather than treating them as one shared object.
Primary reference: VS Code: How Copilot Understands Your Workspace.
Tasks need the intended working directory
A task name can appear in several roots, and relative variables resolve within a defined scope. Confirm which task and directory the agent invokes. Running a test command successfully in a neighboring package does not validate the target package’s change. Include the relevant root in task descriptions and examine output paths. This simple check often explains an apparently passing validation that did not actually exercise the edited code or its dependency graph.
Primary reference: VS Code: Add Context to Chat.
Attached context is not necessarily another execution root
Current agent documentation distinguishes the primary execution workspace from additional attached project context in supported surfaces. Reading another project for comparison does not automatically grant identical editing or tool execution behavior there. State which repository supplies evidence and where the result belongs. If a task genuinely spans projects, define the interfaces and checks for each rather than relying on the visual fact that both roots appear in one window.
Verify ownership in the final diff
Review changes by repository and confirm that validation corresponds to each changed root. Unrelated modifications should not be hidden behind a single broad status summary. A useful final report names the resulting behavior and the actual project checked. Multi-root workspaces improve navigation when boundaries remain explicit. They become confusing when a window is mistaken for one universal repository, permission scope, runtime, and validation environment shared by every agent tool.
Related reading: Continue vs Cline vs Aider for local coding; Reproducible inference stacks: preserving a GPU pilot’s result.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.