diff --git a/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.ts b/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.ts index 788d742adef..dd2b3f12201 100644 --- a/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.ts +++ b/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.ts @@ -441,16 +441,12 @@ function createDiffViewModels(instantiationService: IInstantiationService, confi ); } case 'unchanged': { - const originalCell = originalModel.cells[diff.originalCellIndex]; - const modifiedCell = modifiedModel.cells[diff.modifiedCellIndex]; - const type = originalCell.equal(modifiedCell) ? 'unchanged' : 'modified'; return new SideBySideDiffElementViewModel( model.modified.notebook, model.original.notebook, - originalCell, - modifiedCell, - type, - eventDispatcher, + originalModel.cells[diff.originalCellIndex], + modifiedModel.cells[diff.modifiedCellIndex], + 'unchanged', eventDispatcher, initData, notebookService );