Skip to content

Commit

Permalink
queue refresh when deco is removed (#3738)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge authored Apr 19, 2022
1 parent 0785a1b commit 3bd3711
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/browser/Decorations/OverviewRulerRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export class OverviewRulerRenderer extends Disposable {
*/
private _registerDecorationListeners(): void {
this.register(this._decorationService.onDecorationRegistered(() => this._queueRefresh(undefined, true)));
this.register(this._decorationService.onDecorationRemoved(() => this._queueRefresh(undefined, true)));
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/common/services/DecorationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export class DecorationService extends Disposable implements IDecorationService
const index = this._decorations.indexOf(decoration);
if (index >= 0) {
this._decorations.splice(this._decorations.indexOf(decoration), 1);
this._onDecorationRemoved.fire(decoration);
}
}
});
Expand Down

0 comments on commit 3bd3711

Please sign in to comment.