MCPcopy Create free account
hub / github.com/codeaashu/claude-code / registerDecoration

Method registerDecoration

src/server/web/public/terminal.js:5562–5572  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

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 }

Callers

nothing calls this directly

Calls 5

disposeMethod · 0.95
fireMethod · 0.80
deleteMethod · 0.65
disposeMethod · 0.65
insertMethod · 0.45

Tested by

no test coverage detected