Skip to content

Conversation

@meganrogge
Copy link
Contributor

fixes #291971

Copilot AI review requested due to automatic review settings February 3, 2026 22:21
@meganrogge meganrogge self-assigned this Feb 3, 2026
@meganrogge meganrogge added this to the February 2026 milestone Feb 3, 2026
@meganrogge meganrogge requested review from justschen and removed request for Copilot February 3, 2026 22:22
@vs-code-engineering
Copy link

vs-code-engineering bot commented Feb 3, 2026

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@jrieken

Matched files:

  • src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.ts

Copy link
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

This PR exposes the "Restore to Last Checkpoint" command to the command palette and adds it to the accessibility help dialog for better discoverability and accessibility support.

Changes:

  • Exposed the "Restore to Last Checkpoint" command to the F1 command palette by setting f1: true
  • Added preconditions to ensure the command is only available when appropriate (in chat session, checkpoints enabled, not locked to coding agent)
  • Refactored restoreSnapshotWithConfirmation function to extract core logic into restoreSnapshotWithConfirmationByRequestId for better reusability
  • Updated RestoreLastCheckpoint action to work with the chat model's checkpoint directly instead of requiring a specific chat item
  • Added accessibility alert when no checkpoint is available to restore
  • Added the command to the accessibility help dialog's list of helpful commands

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.ts Refactored checkpoint restoration logic, exposed RestoreLastCheckpoint command to F1, added preconditions, and improved accessibility with an alert for missing checkpoints
src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.ts Added "Restore to Last Checkpoint" command to the list of helpful commands in the accessibility help dialog

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.

Agent prompt to answer question is not accessible

2 participants