(e3)
| 4040 | this._isClearing = false; |
| 4041 | } |
| 4042 | addMarker(e3) { |
| 4043 | const t3 = new l.Marker(e3); |
| 4044 | return this.markers.push(t3), t3.register(this.lines.onTrim(((e4) => { |
| 4045 | t3.line -= e4, t3.line < 0 && t3.dispose(); |
| 4046 | }))), t3.register(this.lines.onInsert(((e4) => { |
| 4047 | t3.line >= e4.index && (t3.line += e4.amount); |
| 4048 | }))), t3.register(this.lines.onDelete(((e4) => { |
| 4049 | t3.line >= e4.index && t3.line < e4.index + e4.amount && t3.dispose(), t3.line > e4.index && (t3.line -= e4.amount); |
| 4050 | }))), t3.register(t3.onDispose((() => this._removeMarker(t3)))), t3; |
| 4051 | } |
| 4052 | _removeMarker(e3) { |
| 4053 | this._isClearing || this.markers.splice(this.markers.indexOf(e3), 1); |
| 4054 | } |
no test coverage detected