Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 11 additions & 1 deletion client/src/connection/itc/ItcServerAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,11 +402,21 @@ class ItcServerAdapter implements ContentAdapter {
},
};

return {
const enrichedItem = {
...item,
contextValue: this.contextMenuProvider.availableActions(item),
vscUri: getSasServerUri(item, false),
};

// Update URI with full path if the item supports copyPath context action
if (enrichedItem.contextValue?.includes("copyPath")) {
const fullPath = enrichedItem.id; // For ITC server, the id is already the full path
if (fullPath && fullPath !== enrichedItem.name) {
enrichedItem.vscUri = getSasServerUri(enrichedItem, false, fullPath);
}
}

return enrichedItem;
}

private async execute(incomingCode: string, params: Record<string, string>) {
Expand Down
Loading
Loading