Files
vscode/extensions/copilot/src
Connor PeetandCopilot dc51f4a3ae chat: require confirmation for .mcp.json and .npmrc edits (#332639)
* chat: require confirmation for .mcp.json edits

Updates edit approval patterns so edits to `.mcp.json` require user confirmation in both edit execution paths.

- Adds `.mcp.json` to the standard chat edit confirmation patterns.
- Adds `.mcp.json` to the agent host edit confirmation patterns.
- Extends focused tests for both edit execution paths.

(Commit message generated by Copilot)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: test .mcp.json path casing

Adds `.mcp.json` to the existing non-canonical casing coverage for protected edit paths.

(Commit message generated by Copilot)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chat: always confirm .npmrc edits

Treat .npmrc files as non-overridable protected edit targets in both chat approval paths, with root and nested-path coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-26 02:28:24 +00:00
..