Skip to content

Commit 36e541e

Browse files
Copilotmeganrogge
andauthored
Expose "View Previous Edits" command in command palette and accessibility help (microsoft#257355)
* Initial plan * Expose ViewPreviousEditsAction in command palette and add to accessibility help Co-authored-by: meganrogge <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: meganrogge <[email protected]>
1 parent d421372 commit 36e541e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export function getAccessibilityHelpText(type: 'panelChat' | 'inlineChat' | 'qui
112112
content.push(localize('chatEditing.discardAllFiles', '- Undo All Edits{0}.', '<keybinding:chatEditing.discardAllFiles>'));
113113
content.push(localize('chatEditing.openFileInDiff', '- Open File in Diff{0}.', '<keybinding:chatEditing.openFileInDiff>'));
114114
content.push(localize('chatEditing.viewChanges', '- View Changes{0}.', '<keybinding:chatEditing.viewChanges>'));
115+
content.push(localize('chatEditing.viewPreviousEdits', '- View Previous Edits{0}.', '<keybinding:chatEditing.viewPreviousEdits>'));
115116
}
116117
else {
117118
content.push(localize('inlineChat.overview', "Inline chat occurs within a code editor and takes into account the current selection. It is useful for making changes to the current editor. For example, fixing diagnostics, documenting or refactoring code. Keep in mind that AI generated code may be incorrect."));

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,9 +724,9 @@ export class ViewPreviousEditsAction extends EditingSessionAction {
724724
constructor() {
725725
super({
726726
id: ViewPreviousEditsAction.Id,
727-
title: ViewPreviousEditsAction.Label,
727+
title: localize2('chatEditing.viewPreviousEdits', 'View Previous Edits'),
728728
tooltip: ViewPreviousEditsAction.Label,
729-
f1: false,
729+
f1: true,
730730
icon: Codicon.diffMultiple,
731731
precondition: hasUndecidedChatEditingResourceContextKey.negate(),
732732
menu: [

0 commit comments

Comments
 (0)