Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/vs/workbench/contrib/notebook/common/model/cellEdit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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[]][],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Loading