mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Remove Vfs from project model
This commit is contained in:
parent
12c70871cc
commit
50fd860471
4 changed files with 8 additions and 9 deletions
|
@ -58,8 +58,12 @@ impl ServerWorldState {
|
|||
|
||||
// Create crate graph from all the workspaces
|
||||
let mut crate_graph = CrateGraph::default();
|
||||
let mut load = |path: &std::path::Path| {
|
||||
let vfs_file = vfs.load(path);
|
||||
vfs_file.map(|f| FileId(f.0.into()))
|
||||
};
|
||||
for ws in workspaces.iter() {
|
||||
crate_graph.extend(ws.to_crate_graph(&mut vfs));
|
||||
crate_graph.extend(ws.to_crate_graph(&mut load));
|
||||
}
|
||||
change.set_crate_graph(crate_graph);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue