Skip to content

Commit 0d4ec78

Browse files
author
willdav
committed
Update dependency ID to utilise hash if no version string is available
1 parent 1f9ee4e commit 0d4ec78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui/ProjectPanelProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class PackageNode {
119119
) {
120120
this.id =
121121
(this.parentId ? `${this.parentId}->` : "") +
122-
`${this.name}-${this.dependency.version ?? ""}`;
122+
`${this.name}-${(this.dependency.version || this.dependency.revision?.substring(0, 7)) ?? ""}`;
123123
}
124124

125125
get name(): string {

0 commit comments

Comments
 (0)