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

Method addMarker

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

Source from the content-addressed store, hash-verified

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 }

Callers 3

registerMarkerMethod · 0.80
registerLinkMethod · 0.80
addLineToLinkMethod · 0.80

Calls 4

_removeMarkerMethod · 0.80
disposeMethod · 0.65
pushMethod · 0.45
registerMethod · 0.45

Tested by

no test coverage detected