From 20150e1205e8c528972e864b6d1793fe1b689401 Mon Sep 17 00:00:00 2001 From: Henning Dieterichs Date: Wed, 2 Aug 2023 11:24:39 +0200 Subject: [PATCH] Fixes #189444 in release --- src/vs/editor/browser/widget/diffEditor.contribution.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 {