Cell edits to show up as File saved in time line (#208631)

This commit is contained in:
Don Jayamanne 2024-03-26 09:56:40 +11:00 committed by GitHub
parent 8d02db45e9
commit 262d4bfaf6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -22,7 +22,7 @@ export interface IViewCellEditingDelegate extends ITextCellEditingDelegate {
export class JoinCellEdit implements IResourceUndoRedoElement {
type: UndoRedoElementType.Resource = UndoRedoElementType.Resource;
label: string = 'Join Cell';
code: string = 'undoredo.notebooks.joinCell';
code: string = 'undoredo.textBufferEdit';
private _deletedRawCell: NotebookCellTextModel;
constructor(
public resource: URI,

View file

@ -24,7 +24,7 @@ export class MoveCellEdit implements IResourceUndoRedoElement {
get label() {
return this.length === 1 ? 'Move Cell' : 'Move Cells';
}
code: string = 'undoredo.notebooks.moveCell';
code: string = 'undoredo.textBufferEdit';
constructor(
public resource: URI,
@ -67,7 +67,7 @@ export class SpliceCellsEdit implements IResourceUndoRedoElement {
// Default to Insert Cell
return 'Insert Cell';
}
code: string = 'undoredo.notebooks.insertCell';
code: string = 'undoredo.textBufferEdit';
constructor(
public resource: URI,
private diffs: [number, NotebookCellTextModel[], NotebookCellTextModel[]][],

View file

@ -1026,7 +1026,7 @@ export class NotebookTextModel extends Disposable implements INotebookTextModel
return that.uri;
}
readonly label = 'Update Cell Language';
readonly code = 'undoredo.notebooks.updateCellLanguage';
readonly code = 'undoredo.textBufferEdit';
undo() {
that._changeCellLanguage(cell, oldLanguage, false, beginSelectionState, undoRedoGroup);
}