Skip to content

Commit

Permalink
Update packages/notebook/src/browser/contributions/notebook-cell-acti…
Browse files Browse the repository at this point in the history
…ons-contribution.ts

Co-authored-by: Mark Sujew <[email protected]>
  • Loading branch information
dhuebner and msujew authored Oct 7, 2024
1 parent bbc6e7b commit 216e7e0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ export class NotebookCellActionContribution implements MenuContribution, Command
// eslint-disable-next-line no-null/no-null
text: null
};
textModel.textEditorModel.pushEditOperations([selection], [deleteOp], _op => [selection]);
// Create a new undo/redo stack entry
textModel.textEditorModel.pushStackElement();
textModel.textEditorModel.pushEditOperations([selection], [deleteOp], () => [selection]);
})
);

Expand Down

0 comments on commit 216e7e0

Please sign in to comment.