MCPcopy Index your code
hub / github.com/codeaashu/claude-code / addLineToLink

Method addLineToLink

src/server/web/public/terminal.js:5823–5829  ·  view source on GitHub ↗
(e3, t3)

Source from the content-addressed store, hash-verified

5821 const i3 = e3, s3 = this._getEntryIdKey(i3), r2 = this._entriesWithId.get(s3);
5822 if (r2) return this.addLineToLink(r2.id, t3.ybase + t3.y), r2.id;
5823 const n2 = t3.addMarker(t3.ybase + t3.y), o2 = { id: this._nextId++, key: this._getEntryIdKey(i3), data: i3, lines: [n2] };
5824 return n2.onDispose((() => this._removeMarkerFromLink(o2, n2))), this._entriesWithId.set(o2.key, o2), this._dataByLinkId.set(o2.id, o2), o2.id;
5825 }
5826 addLineToLink(e3, t3) {
5827 const i3 = this._dataByLinkId.get(e3);
5828 if (i3 && i3.lines.every(((e4) => e4.line !== t3))) {
5829 const e4 = this._bufferService.buffer.addMarker(t3);
5830 i3.lines.push(e4), e4.onDispose((() => this._removeMarkerFromLink(i3, e4)));
5831 }
5832 }

Callers 2

printMethod · 0.80
registerLinkMethod · 0.80

Calls 4

addMarkerMethod · 0.80
_removeMarkerFromLinkMethod · 0.80
getMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected