Skip to content

Commit 8e649b4

Browse files
committed
Add missing import and fix hygiene
1 parent 19116d5 commit 8e649b4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import { Disposable } from 'vs/base/common/lifecycle';
7-
import { derivedWithStore, observableFromEvent, observableValue } from 'vs/base/common/observable';
7+
import { derivedWithStore, observableFromEvent, observableValue, transaction } from 'vs/base/common/observable';
88
import { DiffEditorOptions } from 'vs/editor/browser/widget/diffEditor/diffEditorOptions';
99
import { DiffEditorViewModel } from 'vs/editor/browser/widget/diffEditor/diffEditorViewModel';
1010
import { IDocumentDiffItem, IMultiDiffEditorModel, LazyPromise } from 'vs/editor/browser/widget/multiDiffEditorWidget/model';
@@ -28,10 +28,10 @@ export class MultiDiffEditorViewModel extends Disposable {
2828
}
2929

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

0 commit comments

Comments
 (0)