(msg: RenderableMessage)
| 29 | // provides its own lowering cache that also handles tool extractSearchText. |
| 30 | const fallbackLowerCache = new WeakMap<RenderableMessage, string>(); |
| 31 | function defaultExtractSearchText(msg: RenderableMessage): string { |
| 32 | const cached = fallbackLowerCache.get(msg); |
| 33 | if (cached !== undefined) return cached; |
| 34 | const lowered = renderableSearchText(msg); |
| 35 | fallbackLowerCache.set(msg, lowered); |
| 36 | return lowered; |
| 37 | } |
| 38 | |
| 39 | function estimateTextRows(text: string, columns: number): number | undefined { |
| 40 | if (!text) return undefined; |
nothing calls this directly
no test coverage detected