mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-19 14:22:19 +01:00
Revert fixes for nb diff identification due to possible impact on perf (#227144)
Revert fixes for 227143 due to possible impact on perf
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user