Creates a new SpacesTreeProvider.
Authentication provider for user state management
Private_PrivateauthPrivateitemsReadonlyonAn optional event to signal that an element or root has changed.
This will trigger the view to update the changed element/root and its children recursively (if shown).
To signal that root has changed, do not pass any argument or pass undefined or null.
PrivatespacesPrivategetFetches and returns items within a specific space.
The space object containing space metadata
Array of SpaceItems representing documents in the space
PrivategetFetches and returns user's spaces as tree items. Pre-fetches all items for all spaces to show them expanded immediately.
Array of SpaceItems representing user's spaces
Gets the tree item representation for display.
The SpaceItem to convert
The tree item for VS Code to display
Refreshes the entire tree view by clearing caches and firing change event.
Refreshes a specific space in the tree.
ID of the space to refresh
Tree data provider for the Datalayer Spaces view. Implements VS Code's TreeDataProvider interface to display spaces and documents with caching for improved performance.
Example