VS Code: option to disable diff view for auto-approved edits

Resolved 💬 3 comments Opened Mar 21, 2026 by 3824108-cell Closed Mar 25, 2026

Problem

When using bypassPermissions or acceptEdits mode in the VS Code extension, the diff view still opens on every Edit / Write tool call. This steals focus from whatever the user is currently working on in the editor.

This is especially disruptive during multi-edit operations — for example, when Claude Code performs 5–6 consecutive edits (updating memory files, skills, configs), each one pops open a diff tab and pulls focus away from the terminal or the file the user was reading.

Proposed Solution

Add a setting to suppress the diff view for auto-approved edits. Two possible approaches:

  1. Global toggle:

``json
"claudeCode.showDiffOnEdit": false
``
Disables diff view entirely when edits are auto-approved (i.e., not requiring user confirmation).

  1. Pattern-based suppression:

``json
"claudeCode.diffFilePatterns": [".claude/**", "node_modules/**"]
``
Suppresses diff view only for files matching specific glob patterns.

Either approach (or both) would solve the problem. The pattern-based option is more granular and lets users keep diff view for project source code while suppressing it for auxiliary files.

Use Case

Users who manage Claude Code skills and memory files in ~/.claude/ don't need to review every edit to those files — they trust the agent to manage its own workspace. Currently there is no way to prevent the diff view from interrupting their workflow during these operations.

Expected Behavior

  • When the setting is active and an edit is auto-approved, the file should be modified silently (no diff tab opened, no focus change).
  • The edit should still appear in the terminal output / conversation log as usual.
  • Manual approvals (when the user is prompted) should continue to show the diff view regardless of this setting.

View original on GitHub ↗

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