interrupt always visible for IW

This commit is contained in:
Aaron Munger 2023-06-26 12:58:44 -07:00
parent adafd2633e
commit 8c5d8536ab

View file

@ -573,6 +573,10 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
value: localize('notebookActions.interruptNotebook', "Interrupt"),
original: 'Interrupt'
},
precondition: ContextKeyExpr.and(
NOTEBOOK_HAS_SOMETHING_RUNNING,
NOTEBOOK_INTERRUPTIBLE_KERNEL
),
icon: icons.stopIcon,
menu: [
{
@ -598,11 +602,6 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
},
{
id: MenuId.InteractiveToolbar,
when: ContextKeyExpr.and(
NOTEBOOK_HAS_SOMETHING_RUNNING,
NOTEBOOK_INTERRUPTIBLE_KERNEL,
ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive')
),
group: 'navigation/execute'
}
]