We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 869503b commit a015a64Copy full SHA for a015a64
src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.ts
@@ -461,9 +461,10 @@ export class ToggleInlineDiff extends AbstractInlineChatAction {
461
title: localize('showDiff2', "Show Diff"),
462
mnemonicTitle: localize({ key: 'miShowDiff2', comment: ['&& denotes a mnemonic'] }, "&&Show Diff")
463
},
464
+ precondition: ContextKeyExpr.notEquals('config.inlineChat.mode', 'preview'),
465
menu: [
- { 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) }
+ { id: MenuId.CommandPalette },
467
+ { id: MENU_INLINE_CHAT_WIDGET_TOGGLE }
468
]
469
});
470
}
0 commit comments