From 44bc9a1f588993059819d541e2e68bac2f3e5711 Mon Sep 17 00:00:00 2001 From: meganrogge Date: Tue, 22 Feb 2022 14:18:39 -0600 Subject: [PATCH] don't dispose of marker on dispose of decoration --- src/browser/services/DecorationService.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/browser/services/DecorationService.ts b/src/browser/services/DecorationService.ts index 5cf7a106..de90649e 100644 --- a/src/browser/services/DecorationService.ts +++ b/src/browser/services/DecorationService.ts @@ -145,9 +145,6 @@ export class Decoration extends Disposable implements IDecoration { if (this._element && this._container.contains(this._element)) { this._container.removeChild(this._element); } - if (!this.marker.isDisposed) { - this.marker.dispose(); - } this.isDisposed = true; // Emit before super.dispose such that dispose listeners get a change to react this._onDispose.fire();