Skip to content

tools: add additional patterns to default edit restrictions#317396

Merged
connor4312 merged 1 commit into
mainfrom
connor4312/edit-restriction-patterns
May 19, 2026
Merged

tools: add additional patterns to default edit restrictions#317396
connor4312 merged 1 commit into
mainfrom
connor4312/edit-restriction-patterns

Conversation

@connor4312
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 19, 2026 21:40
@connor4312 connor4312 enabled auto-merge (squash) May 19, 2026 21:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the default edit auto-approval restrictions for Chat tools to better protect common project/automation files from unintended agent changes.

Changes:

  • Add Cargo.toml to the default “always require approval” list.
  • Treat Gradle build files (*.gradle, *.gradle.kts, gradle.properties) as approval-required by default.
  • Block edits to auto-included Ruby LSP addon paths by default.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/chat.shared.contribution.ts Extends the default chat.tools.edits.autoApprove glob denylist with Cargo/Gradle/Ruby LSP patterns.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@connor4312 connor4312 merged commit 96df9bf into main May 19, 2026
29 checks passed
@connor4312 connor4312 deleted the connor4312/edit-restriction-patterns branch May 19, 2026 22:06
@vs-code-engineering vs-code-engineering Bot added this to the 1.122.0 milestone May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants