mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +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);
|
||||
this.dependenciesMap[dep.dependencyPath.toLowerCase()] = dep;
|
||||
return dep;
|
||||
}).sort((a, b) => {
|
||||
return a.label.localeCompare(b.label)
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue