Skip to content

Commit 20150e1

Browse files
committed
Fixes microsoft#189444 in release
1 parent 6b8fff3 commit 20150e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/vs/editor/browser/widget/diffEditor.contribution.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
5050
},
5151
order: 10,
5252
group: '2_diff',
53-
when: EditorContextKeys.accessibleDiffViewerVisible.negate(),
53+
when: ContextKeyExpr.and(
54+
EditorContextKeys.accessibleDiffViewerVisible.negate(),
55+
ContextKeyExpr.has('isInDiffEditor'),
56+
),
5457
});
5558

5659
export class AccessibleDiffViewerPrev extends Action2 {

0 commit comments

Comments
 (0)