still check rootitem

This commit is contained in:
Simon Knott 2024-11-28 12:35:22 +01:00
parent 069fdd99d3
commit 509e3b1d09
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -320,6 +320,8 @@ function indexTree<T extends TreeItem>(
expandedItems: Map<string, boolean | undefined>, expandedItems: Map<string, boolean | undefined>,
autoExpandDepth: number, autoExpandDepth: number,
isVisible?: (item: T) => boolean): Map<T, TreeItemData> { isVisible?: (item: T) => boolean): Map<T, TreeItemData> {
if (isVisible && !isVisible(rootItem))
return new Map();
const result = new Map<T, TreeItemData>(); const result = new Map<T, TreeItemData>();
const temporaryExpanded = new Set<string>(); const temporaryExpanded = new Set<string>();