diff options
author | Florian Diebold <[email protected]> | 2019-02-09 12:06:12 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-02-10 09:56:58 +0000 |
commit | 43e52ac9e2b26ec287b1778823bad10851cfd44e (patch) | |
tree | 9e32634c498e0b8ae6d5132b8b0d3e8c17d37788 /crates/ra_lsp_server | |
parent | 15224dfcd5fc5338844aec5993abf98f7f283e1e (diff) |
Implement BatchDatabase construction
Diffstat (limited to 'crates/ra_lsp_server')
-rw-r--r-- | crates/ra_lsp_server/src/server_world.rs | 4 |
1 files changed, 1 insertions, 3 deletions
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 { | |||
47 | roots.push(krate.root_dir(&ws.sysroot).to_path_buf()) | 47 | roots.push(krate.root_dir(&ws.sysroot).to_path_buf()) |
48 | } | 48 | } |
49 | } | 49 | } |
50 | roots.sort(); | ||
51 | roots.dedup(); | ||
52 | let roots_to_scan = roots.len(); | ||
53 | let (mut vfs, roots) = Vfs::new(roots); | 50 | let (mut vfs, roots) = Vfs::new(roots); |
51 | let roots_to_scan = roots.len(); | ||
54 | for r in roots { | 52 | for r in roots { |
55 | let is_local = vfs.root2path(r).starts_with(&root); | 53 | let is_local = vfs.root2path(r).starts_with(&root); |
56 | change.add_root(SourceRootId(r.0.into()), is_local); | 54 | change.add_root(SourceRootId(r.0.into()), is_local); |