diff options
Diffstat (limited to 'crates/server/src/main_loop/mod.rs')
-rw-r--r-- | crates/server/src/main_loop/mod.rs | 4 |
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 | }); |