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

Method addRefreshCallback

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

Source from the content-addressed store, hash-verified

436 this._animationFrame && (this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame), this._animationFrame = void 0);
437 }
438 addRefreshCallback(e3) {
439 return this._refreshCallbacks.push(e3), this._animationFrame || (this._animationFrame = this._coreBrowserService.window.requestAnimationFrame((() => this._innerRefresh()))), this._animationFrame;
440 }
441 refresh(e3, t3, i2) {
442 this._rowCount = i2, e3 = void 0 !== e3 ? e3 : 0, t3 = void 0 !== t3 ? t3 : this._rowCount - 1, this._rowStart = void 0 !== this._rowStart ? Math.min(this._rowStart, e3) : e3, this._rowEnd = void 0 !== this._rowEnd ? Math.max(this._rowEnd, t3) : t3, this._animationFrame || (this._animationFrame = this._coreBrowserService.window.requestAnimationFrame((() => this._innerRefresh())));
443 }

Callers 1

_queueRefreshMethod · 0.80

Calls 2

_innerRefreshMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected