Skip to content

Commit 22e6255

Browse files
meganroggejrieken
andcommitted
allow diff actions to apply to embedded interactive session diff widget
Co-authored-by: Johannes Rieken <[email protected]>
1 parent 4d38422 commit 22e6255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/browser/widget/diffReview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ class DiffReviewPrev extends EditorAction {
874874
function findFocusedDiffEditor(accessor: ServicesAccessor): DiffEditorWidget | null {
875875
const codeEditorService = accessor.get(ICodeEditorService);
876876
const diffEditors = codeEditorService.listDiffEditors();
877-
const activeCodeEditor = codeEditorService.getActiveCodeEditor();
877+
const activeCodeEditor = codeEditorService.getFocusedCodeEditor() ?? codeEditorService.getActiveCodeEditor();
878878
if (!activeCodeEditor) {
879879
return null;
880880
}

0 commit comments

Comments
 (0)