Skip to content

Commit

Permalink
Fix not being able to run a cell when it is in the Success or Error s…
Browse files Browse the repository at this point in the history
…tate
  • Loading branch information
roblourens committed Mar 11, 2021
1 parent 07d02d3 commit 984479d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ abstract class NotebookCellAction<T = INotebookCellActionContext> extends Notebo

const executeCellCondition = ContextKeyExpr.or(
ContextKeyExpr.and(
ContextKeyExpr.equals(NOTEBOOK_CELL_RUN_STATE.key, NotebookCellRunState[NotebookCellRunState.Idle]),
ContextKeyExpr.notEquals(NOTEBOOK_CELL_RUN_STATE.key, NotebookCellRunState[NotebookCellRunState.Running]),
ContextKeyExpr.greater(NOTEBOOK_KERNEL_COUNT.key, 0)),
NOTEBOOK_CELL_TYPE.isEqualTo('markdown'));

Expand Down Expand Up @@ -358,7 +358,7 @@ registerAction2(class ExecuteCell extends NotebookCellAction<ICellRange> {
}
});

registerAction2(class StopExecuteCell extends NotebookCellAction<ICellRange> {
registerAction2(class CancelExecuteCell extends NotebookCellAction<ICellRange> {
constructor() {
super({
id: CANCEL_CELL_COMMAND_ID,
Expand Down Expand Up @@ -583,7 +583,7 @@ function renderAllMarkdownCells(context: INotebookActionContext): void {
});
}

registerAction2(class extends NotebookAction {
registerAction2(class CancelNotebook extends NotebookAction {
constructor() {
super({
id: CANCEL_NOTEBOOK_COMMAND_ID,
Expand Down

0 comments on commit 984479d

Please sign in to comment.