From a6730be3d8a57fa6ddf15d6dba9a5a71fe1e8e99 Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Fri, 30 Aug 2024 07:16:21 +1000 Subject: [PATCH] Revert fixes for nb diff identification due to possible impact on perf (#227144) Revert fixes for 227143 due to possible impact on perf --- .../notebook/browser/diff/notebookDiffViewModel.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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 );