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 {
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 ]
You can’t perform that action at this time.
0 commit comments