Skip to content

Commit 10a1ae8

Browse files
authored
1 parent cd3072d commit 10a1ae8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export class DiscardHunkAction extends AbstractInlineChatAction {
240240
precondition: CTX_INLINE_CHAT_VISIBLE,
241241
menu: {
242242
id: MENU_INLINE_CHAT_WIDGET_STATUS,
243-
when: ContextKeyExpr.and(CTX_INLINE_CHAT_RESPONSE_TYPES.notEqualsTo(InlineChatResponseTypes.OnlyMessages), CTX_INLINE_CHAT_EDIT_MODE.isEqualTo(EditMode.Live)),
243+
when: ContextKeyExpr.and(CTX_INLINE_CHAT_RESPONSE_TYPES.notEqualsTo(InlineChatResponseTypes.OnlyMessages), CTX_INLINE_CHAT_RESPONSE_TYPES.notEqualsTo(InlineChatResponseTypes.Empty), CTX_INLINE_CHAT_EDIT_MODE.isEqualTo(EditMode.Live)),
244244
group: '0_main',
245245
order: 3
246246
}
@@ -385,7 +385,7 @@ export class AcceptChanges extends AbstractInlineChatAction {
385385
primary: KeyMod.CtrlCmd | KeyCode.Enter,
386386
}],
387387
menu: {
388-
when: ContextKeyExpr.and(CTX_INLINE_CHAT_RESPONSE_TYPES.notEqualsTo(InlineChatResponseTypes.OnlyMessages)),
388+
when: ContextKeyExpr.and(CTX_INLINE_CHAT_RESPONSE_TYPES.notEqualsTo(InlineChatResponseTypes.OnlyMessages), CTX_INLINE_CHAT_RESPONSE_TYPES.notEqualsTo(InlineChatResponseTypes.Empty)),
389389
id: MENU_INLINE_CHAT_WIDGET_STATUS,
390390
group: '0_main',
391391
order: 0
@@ -412,7 +412,7 @@ export class CancelSessionAction extends AbstractInlineChatAction {
412412
},
413413
menu: {
414414
id: MENU_INLINE_CHAT_WIDGET_STATUS,
415-
when: CTX_INLINE_CHAT_EDIT_MODE.isEqualTo(EditMode.Preview),
415+
when: ContextKeyExpr.and(CTX_INLINE_CHAT_EDIT_MODE.isEqualTo(EditMode.Preview), CTX_INLINE_CHAT_RESPONSE_TYPES.notEqualsTo(InlineChatResponseTypes.Empty)),
416416
group: '0_main',
417417
order: 3
418418
}

0 commit comments

Comments
 (0)