* Checks if a collapsible block is explicitly expanded. * Thinking blocks use thinkingCollapseState; others use isCollapsed.
(block: CollapsibleBlock)
| 40 | * Thinking blocks use thinkingCollapseState; others use isCollapsed. |
| 41 | */ |
| 42 | function 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. |
no test coverage detected