Skip to content

Commit 19116d5

Browse files
Use transaction for collapseAll
Co-authored-by: Henning Dieterichs <[email protected]>
1 parent 4bb3809 commit 19116d5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorViewModel.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ export class MultiDiffEditorViewModel extends Disposable {
2828
}
2929

3030
public collapseAll(): void {
31-
for (const d of this.items.get()) {
32-
d.collapsed.set(true, undefined);
33-
}
31+
transaction(tx => {
32+
for (const d of this.items.get()) {
33+
d.collapsed.set(true, tx);
34+
}
35+
});
3436
}
3537

3638
constructor(

0 commit comments

Comments
 (0)