Skip to content

Commit

Permalink
Always add parent ID
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-grant-work committed Mar 24, 2023
1 parent ce7205c commit f2e8fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-ext/src/plugin/tree/tree-views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ class TreeViewExtImpl<T> implements Disposable {
// Modeled on https://github.com/microsoft/vscode/blob/main/src/vs/workbench/api/common/extHostTreeViews.ts#L822
private buildTreeItemId(parentId: string, item: TreeItem, mustReturnNew: boolean): string {
if (item.id) {
return `${TreeViewExtImpl.ID_ITEM}/${item.id}`;
return `${TreeViewExtImpl.ID_ITEM}/${parentId}/${item.id}`;
}

const treeItemLabel = this.getItemLabel(item);
Expand Down

0 comments on commit f2e8fc7

Please sign in to comment.