Fixing tests

This commit is contained in:
Bruno Ortiz 2023-04-02 23:04:32 -03:00
parent 061940dad9
commit e2535926e9
3 changed files with 30 additions and 1 deletions

View file

@ -10,6 +10,12 @@ pub struct CrateInfo {
pub path: String,
}
// Feature: Show Dependency Tree
//
// Shows a view tree with all the dependencies of this project
//
// |===
// image::https://user-images.githubusercontent.com/5748995/229394139-2625beab-f4c9-484b-84ed-ad5dee0b1e1a.png[]
pub(crate) fn fetch_crates(db: &RootDatabase) -> Vec<CrateInfo> {
let crate_graph = db.crate_graph();
crate_graph