Skip to content

Commit

Permalink
Fixes #185781
Browse files Browse the repository at this point in the history
  • Loading branch information
hediet committed Aug 24, 2023
1 parent 27eb58d commit 885ebcd
Show file tree
Hide file tree
Showing 3 changed files with 480 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ export class DiffEditorWidget2 extends DelegatingEditor implements IDiffEditor {

this._register(autorunWithStore((reader, store) => {
/** @description UnchangedRangesFeature */
this.unchangedRangesFeature = store.add(new (readHotReloadableExport(UnchangedRangesFeature, reader))(this._editors, this._diffModel, this._options));
this.unchangedRangesFeature = store.add(
this._instantiationService.createInstance(readHotReloadableExport(UnchangedRangesFeature, reader), this._editors, this._diffModel, this._options)
);
}));

this._register(autorunWithStore((reader, store) => {
Expand All @@ -178,7 +180,9 @@ export class DiffEditorWidget2 extends DelegatingEditor implements IDiffEditor {

this._register(autorunWithStore((reader, store) => {
/** @description OverviewRulerPart */
store.add(this._instantiationService.createInstance(readHotReloadableExport(OverviewRulerPart, reader), this._editors,
store.add(this._instantiationService.createInstance(
readHotReloadableExport(OverviewRulerPart, reader),
this._editors,
this.elements.root,
this._diffModel,
this._rootSizeObserver.width,
Expand Down
Loading

0 comments on commit 885ebcd

Please sign in to comment.