diff --git a/src/vs/editor/browser/widget/diffEditor.contribution.ts b/src/vs/editor/browser/widget/diffEditor.contribution.ts index 3271b5c6eff66..9506f2bd5a7c3 100644 --- a/src/vs/editor/browser/widget/diffEditor.contribution.ts +++ b/src/vs/editor/browser/widget/diffEditor.contribution.ts @@ -50,7 +50,10 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, { }, order: 10, group: '2_diff', - when: EditorContextKeys.accessibleDiffViewerVisible.negate(), + when: ContextKeyExpr.and( + EditorContextKeys.accessibleDiffViewerVisible.negate(), + ContextKeyExpr.has('isInDiffEditor'), + ), }); export class AccessibleDiffViewerPrev extends Action2 {