Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions client/src/components/ContentNavigator/ContentDataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,15 @@ class ContentDataProvider
public async getTreeItem(item: ContentItem): Promise<TreeItem> {
const isContainer = getIsContainer(item);
const uri = await this.model.getUri(item, false);
let tooltip = item.name; // fallback to item name
try {
const fullPath = await this.model.getPathOfItem(item);
if (fullPath) {
tooltip = fullPath;
}
} catch {
// If getPathOfItem fails, tooltip will remain as item.name
}

return {
collapsibleState: isContainer
Expand All @@ -230,6 +239,7 @@ class ContentDataProvider
id: item.uid,
label: item.name,
resourceUri: uri,
tooltip: tooltip,
};
}

Expand Down
Loading