aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-12-19 13:19:53 +0000
committerAleksey Kladov <[email protected]>2018-12-20 09:15:38 +0000
commit2fe41574a1695a6608d738f40ec51bc61fc7604a (patch)
tree5388654b8938fdf90c4a2a1c1f77fac168b46f8b /crates/ra_lsp_server
parente6465e7e2a7e136edd652d5f4c93b961dd652cbc (diff)
fix tests
Diffstat (limited to 'crates/ra_lsp_server')
-rw-r--r--crates/ra_lsp_server/src/server_world.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/server_world.rs b/crates/ra_lsp_server/src/server_world.rs
index bdb4c513f..785877c4b 100644
--- a/crates/ra_lsp_server/src/server_world.rs
+++ b/crates/ra_lsp_server/src/server_world.rs
@@ -48,7 +48,8 @@ impl ServerWorldState {
48 let roots_to_scan = roots.len(); 48 let roots_to_scan = roots.len();
49 let (mut vfs, roots) = Vfs::new(roots); 49 let (mut vfs, roots) = Vfs::new(roots);
50 for r in roots { 50 for r in roots {
51 change.add_root(SourceRootId(r.0)); 51 let is_local = vfs.root2path(r).starts_with(&root);
52 change.add_root(SourceRootId(r.0), is_local);
52 } 53 }
53 54
54 let mut crate_graph = CrateGraph::default(); 55 let mut crate_graph = CrateGraph::default();