Skip to content

Commit a015a64

Browse files
committed
review change
1 parent 869503b commit a015a64

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,10 @@ export class ToggleInlineDiff extends AbstractInlineChatAction {
461461
title: localize('showDiff2', "Show Diff"),
462462
mnemonicTitle: localize({ key: 'miShowDiff2', comment: ['&& denotes a mnemonic'] }, "&&Show Diff")
463463
},
464+
precondition: ContextKeyExpr.notEquals('config.inlineChat.mode', 'preview'),
464465
menu: [
465-
{ id: MenuId.CommandPalette, when: CTX_INLINE_CHAT_EDIT_MODE.notEqualsTo(EditMode.Preview) },
466-
{ id: MENU_INLINE_CHAT_WIDGET_TOGGLE, when: CTX_INLINE_CHAT_EDIT_MODE.notEqualsTo(EditMode.Preview) }
466+
{ id: MenuId.CommandPalette },
467+
{ id: MENU_INLINE_CHAT_WIDGET_TOGGLE }
467468
]
468469
});
469470
}

0 commit comments

Comments
 (0)