Skip to content

Commit

Permalink
fix execute cell and below for last cell
Browse files Browse the repository at this point in the history
Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
  • Loading branch information
jonah-iden committed Jan 30, 2025
1 parent 16a5186 commit 014158b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ export class NotebookCellActionContribution implements MenuContribution, Command
commands.registerCommand(NotebookCellCommands.EXECUTE_CELL_AND_BELOW_COMMAND, this.editableCellCommandHandler(
(notebookModel, cell) => {
const index = notebookModel.cells.indexOf(cell);
if (index < notebookModel.cells.length - 1) {
if (index >= 0) {
this.notebookExecutionService.executeNotebookCells(notebookModel, notebookModel.cells.slice(index).filter(c => c.cellKind === CellKind.Code));
}
})
Expand Down

0 comments on commit 014158b

Please sign in to comment.