We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfd4de1 commit 11ad426Copy full SHA for 11ad426
src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.ts
@@ -222,7 +222,7 @@ export abstract class DiffElementCellViewModelBase extends DiffElementViewModelB
222
layoutState: CellLayoutState.Uninitialized
223
};
224
225
- this.cellFoldingState = modified?.textModel?.getValue() !== original?.textModel?.getValue() ? PropertyFoldingState.Expanded : PropertyFoldingState.Collapsed;
+ this.cellFoldingState = modified?.getTextBufferHash() !== original?.getTextBufferHash() ? PropertyFoldingState.Expanded : PropertyFoldingState.Collapsed;
226
this.metadataFoldingState = PropertyFoldingState.Collapsed;
227
this.outputFoldingState = PropertyFoldingState.Collapsed;
228
0 commit comments