diff options
Diffstat (limited to 'crates/ra_lsp_server/src')
-rw-r--r-- | crates/ra_lsp_server/src/server_world.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/server_world.rs b/crates/ra_lsp_server/src/server_world.rs index 23270d0aa..f97d240fa 100644 --- a/crates/ra_lsp_server/src/server_world.rs +++ b/crates/ra_lsp_server/src/server_world.rs | |||
@@ -58,8 +58,12 @@ impl ServerWorldState { | |||
58 | 58 | ||
59 | // Create crate graph from all the workspaces | 59 | // Create crate graph from all the workspaces |
60 | let mut crate_graph = CrateGraph::default(); | 60 | let mut crate_graph = CrateGraph::default(); |
61 | let mut load = |path: &std::path::Path| { | ||
62 | let vfs_file = vfs.load(path); | ||
63 | vfs_file.map(|f| FileId(f.0.into())) | ||
64 | }; | ||
61 | for ws in workspaces.iter() { | 65 | for ws in workspaces.iter() { |
62 | crate_graph.extend(ws.to_crate_graph(&mut vfs)); | 66 | crate_graph.extend(ws.to_crate_graph(&mut load)); |
63 | } | 67 | } |
64 | change.set_crate_graph(crate_graph); | 68 | change.set_crate_graph(crate_graph); |
65 | 69 | ||