* Gets an object representation for the visible tree structure * If an item is under an unexpanded item it will not be included.
()
| 38 | * If an item is under an unexpanded item it will not be included. |
| 39 | */ |
| 40 | async getTreeStructure(): Promise<TextTree> { |
| 41 | const items = await this.getItems(); |
| 42 | const itemInformation = await parallel(() => |
| 43 | items.map(item => parallel(() => [item.getLevel(), item.getText(), item.isExpanded()])), |
| 44 | ); |
| 45 | return this._getTreeStructure(itemInformation, 1, true); |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Recursively collect the structured text of the tree items. |
no test coverage detected