still check rootitem
This commit is contained in:
parent
069fdd99d3
commit
509e3b1d09
|
|
@ -320,6 +320,8 @@ function indexTree<T extends TreeItem>(
|
|||
expandedItems: Map<string, boolean | undefined>,
|
||||
autoExpandDepth: number,
|
||||
isVisible?: (item: T) => boolean): Map<T, TreeItemData> {
|
||||
if (isVisible && !isVisible(rootItem))
|
||||
return new Map();
|
||||
|
||||
const result = new Map<T, TreeItemData>();
|
||||
const temporaryExpanded = new Set<string>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue