Skip to content

Commit 1f2fc4c

Browse files
authored
Fix Run All + Stop Execution for non-jupyter kernels (microsoft#186013)
non jupyter kernel actions (fixes: microsoft#184194)
1 parent 675314d commit 1f2fc4c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,11 @@ registerAction2(class ExecuteNotebookAction extends NotebookAction {
156156
group: 'navigation/execute',
157157
when: ContextKeyExpr.and(
158158
executeNotebookCondition,
159-
ContextKeyExpr.or(NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated(), NOTEBOOK_HAS_SOMETHING_RUNNING.toNegated()),
159+
ContextKeyExpr.or(
160+
NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated(),
161+
NOTEBOOK_HAS_SOMETHING_RUNNING.toNegated(),
162+
),
163+
ContextKeyExpr.and(NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated())?.negate(),
160164
ContextKeyExpr.equals('config.notebook.globalToolbar', true)
161165
)
162166
}

0 commit comments

Comments
 (0)