MCPcopy
hub / github.com/codeaashu/claude-code / findNext

Method findNext

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

Source from the content-addressed store, hash-verified

6425 this._selectedDecoration.clear(), (0, r.disposeArray)(this._highlightDecorations), this._highlightDecorations = [], this._highlightedLines.clear(), e3 || (this._cachedSearchTerm = void 0);
6426 }
6427 clearActiveDecoration() {
6428 this._selectedDecoration.clear();
6429 }
6430 findNext(e3, t3) {
6431 if (!this._terminal) throw new Error("Cannot use addon until it has been loaded");
6432 const i2 = !this._lastSearchOptions || this._didOptionsChange(this._lastSearchOptions, t3);
6433 this._lastSearchOptions = t3, (t3 == null ? void 0 : t3.decorations) && (void 0 === this._cachedSearchTerm || e3 !== this._cachedSearchTerm || i2) && this._highlightAllMatches(e3, t3);
6434 const s2 = this._findNextAndSelect(e3, t3);
6435 return this._fireResults(t3), this._cachedSearchTerm = e3, s2;
6436 }

Callers 2

initTerminalFunction · 0.80
initTerminalFunction · 0.80

Calls 4

_didOptionsChangeMethod · 0.95
_highlightAllMatchesMethod · 0.95
_findNextAndSelectMethod · 0.95
_fireResultsMethod · 0.95

Tested by

no test coverage detected