Skip to content

Commit 869503b

Browse files
committed
does not appear to work with when clauses inside of menu
1 parent 445ed8e commit 869503b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,8 @@ export class ToggleInlineDiff extends AbstractInlineChatAction {
462462
mnemonicTitle: localize({ key: 'miShowDiff2', comment: ['&& denotes a mnemonic'] }, "&&Show Diff")
463463
},
464464
menu: [
465-
{ id: MenuId.CommandPalette },
466-
{ id: MENU_INLINE_CHAT_WIDGET_TOGGLE }
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) }
467467
]
468468
});
469469
}

0 commit comments

Comments
 (0)