Skip to content

Commit a6730be

Browse files
authored
Revert fixes for nb diff identification due to possible impact on perf (microsoft#227144)
Revert fixes for 227143 due to possible impact on perf
1 parent e674b3a commit a6730be

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -441,16 +441,12 @@ function createDiffViewModels(instantiationService: IInstantiationService, confi
441441
);
442442
}
443443
case 'unchanged': {
444-
const originalCell = originalModel.cells[diff.originalCellIndex];
445-
const modifiedCell = modifiedModel.cells[diff.modifiedCellIndex];
446-
const type = originalCell.equal(modifiedCell) ? 'unchanged' : 'modified';
447444
return new SideBySideDiffElementViewModel(
448445
model.modified.notebook,
449446
model.original.notebook,
450-
originalCell,
451-
modifiedCell,
452-
type,
453-
eventDispatcher,
447+
originalModel.cells[diff.originalCellIndex],
448+
modifiedModel.cells[diff.modifiedCellIndex],
449+
'unchanged', eventDispatcher,
454450
initData,
455451
notebookService
456452
);

0 commit comments

Comments
 (0)