Skip to content

Commit 8c5d853

Browse files
committed
interrupt always visible for IW
1 parent adafd26 commit 8c5d853

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/vs/workbench/contrib/notebook/browser/controller/executeActions.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,10 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
573573
value: localize('notebookActions.interruptNotebook', "Interrupt"),
574574
original: 'Interrupt'
575575
},
576+
precondition: ContextKeyExpr.and(
577+
NOTEBOOK_HAS_SOMETHING_RUNNING,
578+
NOTEBOOK_INTERRUPTIBLE_KERNEL
579+
),
576580
icon: icons.stopIcon,
577581
menu: [
578582
{
@@ -598,11 +602,6 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
598602
},
599603
{
600604
id: MenuId.InteractiveToolbar,
601-
when: ContextKeyExpr.and(
602-
NOTEBOOK_HAS_SOMETHING_RUNNING,
603-
NOTEBOOK_INTERRUPTIBLE_KERNEL,
604-
ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive')
605-
),
606605
group: 'navigation/execute'
607606
}
608607
]

0 commit comments

Comments
 (0)