aboutsummaryrefslogtreecommitdiff
path: root/crates/server/src/main_loop/mod.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-09-10 10:57:40 +0100
committerAleksey Kladov <[email protected]>2018-09-10 10:57:40 +0100
commit505895a25f98423de07c3cec4793b66a19d098c7 (patch)
tree2df3f41f33b5db0b2bba1e2d2acd08f23fffbc2a /crates/server/src/main_loop/mod.rs
parent4f647096665b2ca3725ba1f7415a21fbc46044bb (diff)
store file rsovler
Diffstat (limited to 'crates/server/src/main_loop/mod.rs')
-rw-r--r--crates/server/src/main_loop/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/server/src/main_loop/mod.rs b/crates/server/src/main_loop/mod.rs
index f1297ee48..f3b2744bf 100644
--- a/crates/server/src/main_loop/mod.rs
+++ b/crates/server/src/main_loop/mod.rs
@@ -135,12 +135,12 @@ fn main_loop_inner(
135 if root == ws_root { 135 if root == ws_root {
136 state.apply_fs_changes(events); 136 state.apply_fs_changes(events);
137 } else { 137 } else {
138 let files = state.events_to_files(events); 138 let (files, resolver) = state.events_to_files(events);
139 let sender = libdata_sender.clone(); 139 let sender = libdata_sender.clone();
140 pool.spawn(move || { 140 pool.spawn(move || {
141 let start = ::std::time::Instant::now(); 141 let start = ::std::time::Instant::now();
142 info!("indexing {} ... ", root.display()); 142 info!("indexing {} ... ", root.display());
143 let data = LibraryData::prepare(files); 143 let data = LibraryData::prepare(files, resolver);
144 info!("indexed {:?} {}", start.elapsed(), root.display()); 144 info!("indexed {:?} {}", start.elapsed(), root.display());
145 sender.send(data); 145 sender.send(data);
146 }); 146 });