| 5560 | return this._decorations.values(); |
| 5561 | } |
| 5562 | constructor() { |
| 5563 | super(), this._decorations = new o.SortedList(((e3) => e3 == null ? void 0 : e3.marker.line)), this._onDecorationRegistered = this.register(new r.EventEmitter()), this.onDecorationRegistered = this._onDecorationRegistered.event, this._onDecorationRemoved = this.register(new r.EventEmitter()), this.onDecorationRemoved = this._onDecorationRemoved.event, this.register((0, n.toDisposable)((() => this.reset()))); |
| 5564 | } |
| 5565 | registerDecoration(e3) { |
| 5566 | if (e3.marker.isDisposed) return; |
| 5567 | const t3 = new l(e3); |
| 5568 | if (t3) { |
| 5569 | const e4 = t3.marker.onDispose((() => t3.dispose())); |
| 5570 | t3.onDispose((() => { |
| 5571 | t3 && (this._decorations.delete(t3) && this._onDecorationRemoved.fire(t3), e4.dispose()); |
| 5572 | })), this._decorations.insert(t3), this._onDecorationRegistered.fire(t3); |
| 5573 | } |
| 5574 | return t3; |
| 5575 | } |