MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isBlockExpanded

Function isBlockExpanded

cli/src/utils/collapse-helpers.ts:42–47  ·  view source on GitHub ↗

* Checks if a collapsible block is explicitly expanded. * Thinking blocks use thinkingCollapseState; others use isCollapsed.

(block: CollapsibleBlock)

Source from the content-addressed store, hash-verified

40 * Thinking blocks use thinkingCollapseState; others use isCollapsed.
41 */
42function isBlockExpanded(block: CollapsibleBlock): boolean {
43 if (isThinkingTextBlock(block)) {
44 return block.thinkingCollapseState === 'expanded'
45 }
46 return block.isCollapsed === false
47}
48
49/**
50 * Gets the current collapsed state of a block.

Callers 1

Calls 1

isThinkingTextBlockFunction · 0.85

Tested by

no test coverage detected