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
- Create a
.code-workspace file with two folders:
{
"folders": [
{ "path": "project-a" },
{ "path": "project-b" }
]
}
- Open the workspace in VS Code
- Start a Claude Code conversation
- 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
When opening a
.code-workspacefile 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
.code-workspacefile with two folders:{ "folders": [ { "path": "project-a" }, { "path": "project-b" } ] }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 aboutproject-band must manually discover it.Downstream impact
CLAUDE.mdfiles in other workspace folders may not be loaded