properly dispose of buffer decoration

This commit is contained in:
meganrogge
2022-03-15 12:16:33 -04:00
parent 520d5dd9eb
commit f98b4ce1ba
3 changed files with 8 additions and 2 deletions
@@ -63,6 +63,7 @@ export class BufferDecorationRenderer extends Disposable {
let element = this._decorationElements.get(decoration);
if (!element) {
element = this._createElement(decoration);
decoration.onDispose(() => this._removeDecoration(decoration));
this._decorationElements.set(decoration, element);
this._container.appendChild(element);
}