aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-02-09 10:08:24 +0000
committerFlorian Diebold <[email protected]>2019-02-09 10:15:25 +0000
commit50fd860471f577e9bb7536e74eb181c055033183 (patch)
tree119dad471cff28b82d3d1f82bfdddcac638c684b /crates/ra_lsp_server/src
parent12c70871cca736afa44379e59f8573c60b0ccd0a (diff)
Remove Vfs from project model
Diffstat (limited to 'crates/ra_lsp_server/src')
-rw-r--r--crates/ra_lsp_server/src/server_world.rs6
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