MCPcopy Create free account
hub / github.com/continuedev/continue / shouldSplitContent

Function shouldSplitContent

extensions/cli/src/ui/utils/historySplitting.ts:167–170  ·  view source on GitHub ↗

* Determines if content should be split based on its estimated height.

(content: string, terminalWidth: number)

Source from the content-addressed store, hash-verified

165 * Determines if content should be split based on its estimated height.
166 */
167function shouldSplitContent(content: string, terminalWidth: number): boolean {
168 const estimatedHeight = estimateContentHeight(content, terminalWidth);
169 return estimatedHeight > MAX_HEIGHT_BEFORE_SPLIT;
170}

Callers 2

splitChatHistoryItemFunction · 0.85

Calls 1

estimateContentHeightFunction · 0.85

Tested by

no test coverage detected