Claude Code only recognizes the first folder in a VS Code multi-root workspace

Resolved 💬 2 comments Opened Mar 4, 2026 by aeadedoyin Closed Mar 4, 2026

When opening a .code-workspace file with multiple folders, Claude Code only sets the first folder as the primary working directory and has no awareness of the other folders in the workspace.

Steps to reproduce

  1. Create a .code-workspace file with two folders:
{
  "folders": [
    { "path": "project-a" },
    { "path": "project-b" }
  ]
}
  1. Open the workspace in VS Code
  2. Start a Claude Code conversation
  3. Ask "what projects are in this workspace?"

Expected behavior

Claude Code should be aware of all folders in the workspace and list them in its environment context.

Actual behavior

Only the first folder (project-a) is recognized as the primary working directory. Claude has no context about project-b and must manually discover it.

Downstream impact

  • Project-scoped memory is only created for the first folder, not shared across the workspace
  • Claude defaults to only answering about the first project unless explicitly corrected
  • CLAUDE.md files in other workspace folders may not be loaded

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗