Skip to content

Commit c4ef9df

Browse files
authored
Merge pull request microsoft#182323 from microsoft/merogge/diff-fix
allow diff actions to apply to embedded interactive session diff widget
2 parents 6f9263f + 22e6255 commit c4ef9df

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)