Skip to content

Copilot: Sensitive Files Diff Preview #266574

@rwoll

Description

@rwoll

When Copilot asks me for consent to edit sensitive files, I'm having a difficult time quickly understanding what it's about to do and what the resulting file would look like.

Here's the output I'm given:

{
  "filePath": "/Users/rosswollman/code/assertion-library/package.json",
  "newString": "  \"scripts\": {\n    \"build\": \"tsc\",\n    \"test\": \"playwright test\",\n    \"test:ui\": \"playwright test --ui\"\n  },",
  "oldString": "  \"scripts\": {},"
}
Image

As a vNext, it would be nice to either see an inline diff view of the file (in the same UI view but in place of the raw tool call), or in the standard location edits appear (though, without persisting to disk until the approval).

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insidersverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions