mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Sort rust dependencies in tree view
This commit is contained in:
parent
e461e53f01
commit
06cfeb47b2
1 changed files with 2 additions and 0 deletions
|
@ -89,6 +89,8 @@ export class RustDependenciesProvider
|
||||||
const dep = this.toDep(crate.name || "unknown", crate.version || "", crate.path);
|
const dep = this.toDep(crate.name || "unknown", crate.version || "", crate.path);
|
||||||
this.dependenciesMap[dep.dependencyPath.toLowerCase()] = dep;
|
this.dependenciesMap[dep.dependencyPath.toLowerCase()] = dep;
|
||||||
return dep;
|
return dep;
|
||||||
|
}).sort((a, b) => {
|
||||||
|
return a.label.localeCompare(b.label)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue