Revert fixes for nb diff identification due to possible impact on perf (#227144)

Revert fixes for 227143 due to possible impact on perf
pull/170228/merge
Don Jayamanne 2024-08-30 07:16:21 +10:00 committed by GitHub
parent e674b3a0b5
commit a6730be3d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 7 deletions

View File

@ -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
);