From 43e52ac9e2b26ec287b1778823bad10851cfd44e Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sat, 9 Feb 2019 13:06:12 +0100 Subject: Implement BatchDatabase construction --- crates/ra_lsp_server/src/server_world.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'crates/ra_lsp_server') diff --git a/crates/ra_lsp_server/src/server_world.rs b/crates/ra_lsp_server/src/server_world.rs index f97d240fa..4a68c019f 100644 --- a/crates/ra_lsp_server/src/server_world.rs +++ b/crates/ra_lsp_server/src/server_world.rs @@ -47,10 +47,8 @@ impl ServerWorldState { roots.push(krate.root_dir(&ws.sysroot).to_path_buf()) } } - roots.sort(); - roots.dedup(); - let roots_to_scan = roots.len(); let (mut vfs, roots) = Vfs::new(roots); + let roots_to_scan = roots.len(); for r in roots { let is_local = vfs.root2path(r).starts_with(&root); change.add_root(SourceRootId(r.0.into()), is_local); -- cgit v1.2.3