queue refresh when deco is removed (#3738)

This commit is contained in:
Megan Rogge
2022-04-19 08:49:16 -07:00
committed by GitHub
parent 0785a1bf24
commit 3bd37115d1
2 changed files with 2 additions and 0 deletions
@@ -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)));
}
/**
+1
View File
@@ -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);
}
}
});