enabled core cell delete for IW and undo operations

This commit is contained in:
aamunger
2022-08-17 16:13:01 -07:00
parent 8cf99fe3b3
commit 833cbca95b
4 changed files with 5 additions and 11 deletions

View File

@@ -954,9 +954,6 @@ export class NotebookViewModel extends Disposable implements EditorFoldingStateD
}
async undo() {
if (this._options.isReadOnly) {
return null;
}
const editStack = this._undoService.getElements(this.uri);
const element = editStack.past.length ? editStack.past[editStack.past.length - 1] : undefined;
@@ -974,9 +971,6 @@ export class NotebookViewModel extends Disposable implements EditorFoldingStateD
}
async redo() {
if (this._options.isReadOnly) {
return null;
}
const editStack = this._undoService.getElements(this.uri);
const element = editStack.future[0];