Skip to content

Enable Open Original File for deleted PR files - #9038

Merged
Alex Ross (alexr00) merged 3 commits into
mainfrom
copilot/enable-open-original-file-deleted-files
Oct 9, 2026
Merged

Alex Ross (alexr00) merged 3 commits into
mainfrom
copilot/enable-open-original-file-deleted-files

Conversation

Copilot AI commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Deleted files should expose their base version through Open Original File, but should not offer Reveal in File Explorer.

  • Menu visibility: Include deleted files alongside modified files for Open Original File; exclude deleted files alongside added files for Reveal in File Explorer. Applies to both PR sidebars.
  • Regression coverage: Check menu conditions across file statuses and viewed/unviewed states.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Copilot AI changed the title [WIP] Enable 'Open original file' functionality for deleted files Enable Open Original File for deleted PR files Oct 8, 2026
@alexr00
Alex Ross (alexr00) marked this pull request as ready for review October 9, 2026 15:40
Copilot AI balanced review requested due to automatic review settings October 9, 2026 15:40
@alexr00
Alex Ross (alexr00) enabled auto-merge (squash) October 9, 2026 15:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused menu-condition changes satisfy the requested behavior and include adequate regression coverage.

0 open findings

What changed in this PR

Enables opening deleted files’ base versions while preventing deleted files from being revealed in the file explorer.

Changes:

  • Updated context-menu visibility for deleted files.
  • Added status and viewed-state regression coverage.
File Description
package.json Adjusts file-change menu conditions.
src/​test/​view/​fileChangeMenus.test.ts Tests menu visibility across statuses and viewed states.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@alexr00
Alex Ross (alexr00) merged commit 08dcf14 into main Oct 9, 2026
7 checks passed
@alexr00
Alex Ross (alexr00) deleted the copilot/enable-open-original-file-deleted-files branch October 9, 2026 15:56
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.

Enable "Open original file" for deleted files

4 participants