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

Method _destroyLinesCache

src/server/web/public/terminal.js:6519–6521  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6517 }
6518 _initLinesCache() {
6519 const e3 = this._terminal;
6520 this._linesCache || (this._linesCache = new Array(e3.buffer.active.length), this._linesCacheDisposables.value = (0, r.getDisposeArrayDisposable)([e3.onLineFeed((() => this._destroyLinesCache())), e3.onCursorMove((() => this._destroyLinesCache())), e3.onResize((() => this._destroyLinesCache()))])), window.clearTimeout(this._linesCacheTimeoutId), this._linesCacheTimeoutId = window.setTimeout((() => this._destroyLinesCache()), 15e3);
6521 }
6522 _destroyLinesCache() {
6523 this._linesCache = void 0, this._linesCacheDisposables.clear(), this._linesCacheTimeoutId && (window.clearTimeout(this._linesCacheTimeoutId), this._linesCacheTimeoutId = 0);
6524 }

Callers 1

_initLinesCacheMethod · 0.95

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected