Skip to content

Commit

Permalink
Remove Inserted/Deleted text from notebook cell diff header (#225091)
Browse files Browse the repository at this point in the history
Remote Inserted/Deleted text from header
  • Loading branch information
DonJayamanne authored Aug 8, 2024
1 parent d288df1 commit 559107b
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,6 @@ abstract class SingleSideDiffElement extends AbstractElementRenderer {
override readonly cell: SingleSideDiffElementViewModel;
override readonly templateData: CellDiffSingleSideRenderTemplate;
abstract get nestedCellViewModel(): DiffNestedCellViewModel;
abstract get changedLabel(): string;
abstract get isEditable(): boolean;
constructor(
notebookEditor: INotebookTextDiffEditor,
Expand Down Expand Up @@ -940,7 +939,7 @@ abstract class SingleSideDiffElement extends AbstractElementRenderer {
getFoldingState: (cell) => cell.cellFoldingState,
updateFoldingState: (cell, state) => cell.cellFoldingState = state,
unChangedLabel: 'Input',
changedLabel: this.changedLabel,
changedLabel: 'Input',
prefix: 'input',
menuId: MenuId.NotebookDiffCellInputTitle
}
Expand Down Expand Up @@ -1093,9 +1092,6 @@ export class DeletedElement extends SingleSideDiffElement {
get nestedCellViewModel() {
return this.cell.original!;
}
get changedLabel() {
return 'Input deleted';
}
get isEditable() {
return true;
}
Expand Down Expand Up @@ -1226,9 +1222,6 @@ export class InsertElement extends SingleSideDiffElement {
get nestedCellViewModel() {
return this.cell.modified!;
}
get changedLabel() {
return 'Input inserted';
}
get isEditable() {
return true;
}
Expand Down

0 comments on commit 559107b

Please sign in to comment.