mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
internal: add "Shuffle Crate Graph" command
This commit is contained in:
parent
9ae3158292
commit
deb5c1426d
10 changed files with 106 additions and 0 deletions
|
@ -56,6 +56,7 @@ mod typing;
|
|||
mod view_crate_graph;
|
||||
mod view_hir;
|
||||
mod view_item_tree;
|
||||
mod shuffle_crate_graph;
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
|
@ -177,6 +178,10 @@ impl AnalysisHost {
|
|||
pub fn raw_database_mut(&mut self) -> &mut RootDatabase {
|
||||
&mut self.db
|
||||
}
|
||||
|
||||
pub fn shuffle_crate_graph(&mut self) {
|
||||
shuffle_crate_graph::shuffle_crate_graph(&mut self.db);
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for AnalysisHost {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue