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

Function defaultExtractSearchText

src/components/VirtualMessageList.tsx:25–31  ·  view source on GitHub ↗
(msg: RenderableMessage)

Source from the content-addressed store, hash-verified

23// provides its own lowering cache that also handles tool extractSearchText.
24const fallbackLowerCache = new WeakMap<RenderableMessage, string>();
25function defaultExtractSearchText(msg: RenderableMessage): string {
26 const cached = fallbackLowerCache.get(msg);
27 if (cached !== undefined) return cached;
28 const lowered = renderableSearchText(msg);
29 fallbackLowerCache.set(msg, lowered);
30 return lowered;
31}
32export type StickyPrompt = {
33 text: string;
34 scrollTo: () => void;

Callers

nothing calls this directly

Calls 3

renderableSearchTextFunction · 0.85
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected