claude-code - 💡(How to fix) Fix [BUG] VS Code extension ignores permissions.allow [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48724Fetched 2026-04-16 06:52:45
View on GitHub
Comments
2
Participants
3
Timeline
8
Reactions
0
Author
Timeline (top)
labeled ×5commented ×2cross-referenced ×1

Error Message

Error Messages/Logs

Code Example

{
  "permissions": {
    "allow": [
      "Bash(cd *)",
      "Bash(git *)",

---

Version: 1.116.0
Commit: 560a9dba96f961efea7b1612916f89e5d5d4d679
Date: 2026-04-15T00:28:13Z
Electron: 39.8.7
ElectronBuildId: 13797146
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0

---
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Background

Using VS code with with Claude Code extension.

VS Code extension ignores permissions.allow rules in both~/.claude/settings.json and .claude/settings.local.json, and prompts for every Bash call regardless of permission mode ("Edit Automatically" included). No "don't ask again" option in the approval prompt either.

settings.local.json snippet

{
  "permissions": {
    "allow": [
      "Bash(cd *)",
      "Bash(git *)",

Command Claude Code is trying to run:

cd ~/dev/git/lms/moodle/html/local/cert && git diff LMSM-703..LMSM-704 --stat

Environment

Microsoft VS Code:

Version: 1.116.0
Commit: 560a9dba96f961efea7b1612916f89e5d5d4d679
Date: 2026-04-15T00:28:13Z
Electron: 39.8.7
ElectronBuildId: 13797146
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0

I have $HOME/.claude/skills/mr_summary_table/SKILL.md. Inside that file I have: allowed-tools: Bash(cd * && git diff*), Bash(cd * && git log*), Bash(git diff*), Bash(git log*) VS Code explicitly warns it's unsupported

permissions.allow in ~/.claude/settings.json — ignored. permissions.allow in .claude/settings.local.json — ignored. "Edit Automatically" permission mode — still prompts.

So there's no way to auto-approve Bash calls in the VS Code extension. The allowed-tools skill attribute is the intended mechanism but isn't implemented, and the fallback (permissions.allow) doesn't work either.

<img width="626" height="446" alt="Image" src="https://github.com/user-attachments/assets/3bf70b3d-ccce-4b4b-922a-6e44d0fdb7a2" />

What Should Happen?

User should not be prompted whether or not to allow the command. It's already allowed from the settings.

Error Messages/Logs

Steps to Reproduce

Create a skill that will run cd ~/dev/git/lms/moodle/html/local/cert && git diff GIT_BRANCH_1..GIT_BRANCH_2 --stat

Call that skill.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

[email protected]

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The VS Code extension for Claude Code may require an update or a workaround to properly respect the permissions.allow rules in both ~/.claude/settings.json and .claude/settings.local.json for auto-approving Bash calls.

Guidance

  • Verify that the permissions.allow rules are correctly formatted and match the commands being executed, such as ensuring that the Bash(cd *) rule covers the specific command cd ~/dev/git/lms/moodle/html/local/cert && git diff LMSM-703..LMSM-704 --stat.
  • Check if there are any known issues or updates for the Claude Code VS Code extension that address the ignoring of permissions.allow rules.
  • Consider reaching out to the developers or support for the Claude Code extension to report the issue and inquire about potential workarounds or fixes, especially since the allowed-tools skill attribute is mentioned as the intended mechanism but is not implemented.
  • Review the documentation for the Claude Code extension and the Anthropics API to ensure that all settings and configurations are correctly applied and supported.

Notes

The issue seems to stem from the VS Code extension not respecting the permissions.allow rules as expected, and the allowed-tools attribute not being implemented as a fallback. Without further information on the extension's development status or known issues, it's challenging to provide a definitive fix.

Recommendation

Apply workaround: Given the current information, the best course of action seems to be waiting for an update to the Claude Code VS Code extension that properly implements the allowed-tools attribute or respects the permissions.allow rules, or seeking direct support from the developers for a potential temporary workaround.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING