From fbd6ef8cc8456f2c3495dcc99dbe9d5c37e55f2d Mon Sep 17 00:00:00 2001 From: Jerilyn Franz Date: Fri, 16 Jan 2026 07:53:55 -0800 Subject: [PATCH 1/2] Clarification of how to enable diff views in chat that removes ambiguity about what the default is --- docs/copilot/chat/review-code-edits.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/copilot/chat/review-code-edits.md b/docs/copilot/chat/review-code-edits.md index 3884d65509..eeaf164616 100644 --- a/docs/copilot/chat/review-code-edits.md +++ b/docs/copilot/chat/review-code-edits.md @@ -40,9 +40,10 @@ If you automatically accept all edits, it's strongly recommended to still review ## Edit sensitive files -To prevent inadvertent edits to sensitive files, such as workspace configuration settings or environment settings, VS Code prompts you to approve edits before they are applied. In chat, you can see a diff view of the proposed changes and choose to approve or reject them. +To prevent inadvertent edits to sensitive files, such as workspace configuration settings or environment settings, VS Code prompts you to approve edits before they are finalized. -Use the `setting(chat.tools.edits.autoApprove)` setting to configure which files require approval. The setting uses glob patterns to match file paths in your workspace. + +If you wish to see a diff view of proposed changes in chat _before_ the edits are made and choose to approve or reject them from chat first, use the `setting(chat.tools.edits.autoApprove)` setting to configure which files require approval from chat. The setting uses glob patterns to match file paths in your workspace. The default is to _not_ show most diffs in chat first. The following example configuration automatically allows edits to all files except for JSON files in the `.vscode` folder and files named `.env`, which you are prompted to approve: From 64fa332923d281f9bc15ac0fc0d2297090b1a2f3 Mon Sep 17 00:00:00 2001 From: Jerilyn Franz Date: Fri, 16 Jan 2026 21:24:18 -0800 Subject: [PATCH 2/2] Update docs/copilot/chat/review-code-edits.md Revised doc diff from ntrogh Co-authored-by: Nick Trogh --- docs/copilot/chat/review-code-edits.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/copilot/chat/review-code-edits.md b/docs/copilot/chat/review-code-edits.md index eeaf164616..b9d3e231a5 100644 --- a/docs/copilot/chat/review-code-edits.md +++ b/docs/copilot/chat/review-code-edits.md @@ -40,7 +40,11 @@ If you automatically accept all edits, it's strongly recommended to still review ## Edit sensitive files -To prevent inadvertent edits to sensitive files, such as workspace configuration settings or environment settings, VS Code prompts you to approve edits before they are finalized. +By default, VS Code automatically applies edits to files in your workspace and then prompts you to approve these edits before they are finalized. + +To prevent inadvertent changes to _sensitive files_, VS Code can show a diff view of the proposed edits before they are applied. You can then decide if you want to keep or reject these edits. Use the `setting(chat.tools.edits.autoApprove)` setting to configure which files require approval from chat. + +By default, VS Code asks for approval for workspace configuration settings, environment settings, and a limited set of known files. It is recommended to review the list of file types and add sensitive files for your project. If you wish to see a diff view of proposed changes in chat _before_ the edits are made and choose to approve or reject them from chat first, use the `setting(chat.tools.edits.autoApprove)` setting to configure which files require approval from chat. The setting uses glob patterns to match file paths in your workspace. The default is to _not_ show most diffs in chat first.