mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
enabled core cell delete for IW and undo operations
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user