File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/vs/workbench/contrib/notebook/browser/controller Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -573,6 +573,10 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
573
573
value : localize ( 'notebookActions.interruptNotebook' , "Interrupt" ) ,
574
574
original : 'Interrupt'
575
575
} ,
576
+ precondition : ContextKeyExpr . and (
577
+ NOTEBOOK_HAS_SOMETHING_RUNNING ,
578
+ NOTEBOOK_INTERRUPTIBLE_KERNEL
579
+ ) ,
576
580
icon : icons . stopIcon ,
577
581
menu : [
578
582
{
@@ -598,11 +602,6 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
598
602
} ,
599
603
{
600
604
id : MenuId . InteractiveToolbar ,
601
- when : ContextKeyExpr . and (
602
- NOTEBOOK_HAS_SOMETHING_RUNNING ,
603
- NOTEBOOK_INTERRUPTIBLE_KERNEL ,
604
- ContextKeyExpr . equals ( 'activeEditor' , 'workbench.editor.interactive' )
605
- ) ,
606
605
group : 'navigation/execute'
607
606
}
608
607
]
You can’t perform that action at this time.
0 commit comments