Press Enter to search · Esc to close

Claude Code in VS Code is skipping settings in trusted folders

Claude Code in VS Code is skipping settings in trusted folders
Official Anthropic screenshot of the Claude Code extension running inside VS Code, with a project file open beside the Claude Code chat panel

Image credit: Anthropic, official screenshot of the Claude Code extension in VS Code, from the company's Claude Code documentation.

The Claude Code extension for VS Code is leaving out a folder's project settings, skills, MCP servers, commands, and CLAUDE.md file even when that folder was already trusted, according to an open bug report filed on December 2. The only obvious sign, the reporter says, is a banner that reads, "Claude Code couldn't check whether this folder is trusted, so this session uses your own settings and leaves out the folder's settings, MCP servers, CLAUDE.md, commands, and skills." At the time of this writing the issue is still open, and the latest published Claude Code release does not list a fix.

paolo-baldini opened issue 113427 after seeing the problem in the official Anthropic VS Code extension on macOS with Claude Code 2.1.333. The report says the extension runs claude workspace-trust --json with a folder path. The CLI does not accept a path and answers with an error such as "too many arguments for 'workspace-trust'. Expected 0 arguments but got 1." Extension logs also show "unknown option '--json'", which the reporter says may come from an older CLI message for the same bad call. When that check fails, the extension now treats the folder as untrusted instead of using the saved trust record in ~/.claude.json, the report says, starting around versions 2.1.329 to 2.1.330.

In the reporter's own session notes, project skills in the affected folder still loaded on 2.1.328 and failed on 2.1.330, when a skill call came back as an unknown skill. The same setup was still broken on 2.1.333. The underlying CLI error is older. The reporter found it in extension logs going back to November 10, well before skills started disappearing. What changed, in this account, is how a failed check is handled, not the arrival of the error itself.

A follow-up comment posted lines from a single extension debug log. In that log the workspace-trust call failed, the folder's setting sources stayed unused because there was no trust report, the session did not trust the folder, and project skills loaded at zero. The reporter had briefly stepped back from the root-cause claim after finding that a correct claude workspace-trust --json call with no path returns trusted for the same folder. The log, they later wrote, shows two different checks. The bare terminal command honors the saved grant. The check used by the VS Code session does not, and that is the one that gates project files.

The terminal CLI is not affected, the report says, because it does not use that extension call. Running /reload-skills, opening a new session, or running git init in the folder did not restore the missing project files. Until a fix lands, the workaround offered in the issue and in a later warning on X is to use Claude Code in the terminal when you need project instructions, skills, or MCP tools.

A contributor writing as four1er commented that they were reproducing the bug, working on a fix, and would open a pull request shortly. At the time of this writing no linked pull request was found on the issue, a search of the repository for pull requests naming the issue number returned none, and no Anthropic staff reply appears on the ticket.

The newest CLI on npm, tagged latest, is 2.1.334. That version was published before the December 2 report was filed. Its changelog includes other VS Code and skills fixes, but it does not mention workspace-trust, the trust banner, or a change that would again fall back to a saved trust record after a failed check. No newer version than 2.1.334 had been published at the time of this writing.

People who see that banner in VS Code, and who rely on a trusted folder's CLAUDE.md, skills, or MCP servers, can switch to the terminal CLI for that work. The public issue and the latest release notes checked for this report do not show that the bug has been fixed.

Comments