Skip to content

Commit 262d4bf

Browse files
authored
Cell edits to show up as File saved in time line (microsoft#208631)
1 parent 8d02db4 commit 262d4bf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/vs/workbench/contrib/notebook/browser/viewModel/cellEdit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface IViewCellEditingDelegate extends ITextCellEditingDelegate {
2222
export class JoinCellEdit implements IResourceUndoRedoElement {
2323
type: UndoRedoElementType.Resource = UndoRedoElementType.Resource;
2424
label: string = 'Join Cell';
25-
code: string = 'undoredo.notebooks.joinCell';
25+
code: string = 'undoredo.textBufferEdit';
2626
private _deletedRawCell: NotebookCellTextModel;
2727
constructor(
2828
public resource: URI,

src/vs/workbench/contrib/notebook/common/model/cellEdit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class MoveCellEdit implements IResourceUndoRedoElement {
2424
get label() {
2525
return this.length === 1 ? 'Move Cell' : 'Move Cells';
2626
}
27-
code: string = 'undoredo.notebooks.moveCell';
27+
code: string = 'undoredo.textBufferEdit';
2828

2929
constructor(
3030
public resource: URI,
@@ -67,7 +67,7 @@ export class SpliceCellsEdit implements IResourceUndoRedoElement {
6767
// Default to Insert Cell
6868
return 'Insert Cell';
6969
}
70-
code: string = 'undoredo.notebooks.insertCell';
70+
code: string = 'undoredo.textBufferEdit';
7171
constructor(
7272
public resource: URI,
7373
private diffs: [number, NotebookCellTextModel[], NotebookCellTextModel[]][],

src/vs/workbench/contrib/notebook/common/model/notebookTextModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ export class NotebookTextModel extends Disposable implements INotebookTextModel
10261026
return that.uri;
10271027
}
10281028
readonly label = 'Update Cell Language';
1029-
readonly code = 'undoredo.notebooks.updateCellLanguage';
1029+
readonly code = 'undoredo.textBufferEdit';
10301030
undo() {
10311031
that._changeCellLanguage(cell, oldLanguage, false, beginSelectionState, undoRedoGroup);
10321032
}

0 commit comments

Comments
 (0)