don't dispose of marker on dispose of decoration

This commit is contained in:
meganrogge
2022-02-22 14:18:39 -06:00
parent 1da492646c
commit 44bc9a1f58
@@ -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();