diff options
Diffstat (limited to 'crates/server/src/main.rs')
-rw-r--r-- | crates/server/src/main.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/server/src/main.rs b/crates/server/src/main.rs index 916638d49..3ff300e3d 100644 --- a/crates/server/src/main.rs +++ b/crates/server/src/main.rs | |||
@@ -23,6 +23,7 @@ mod req; | |||
23 | mod dispatch; | 23 | mod dispatch; |
24 | mod handlers; | 24 | mod handlers; |
25 | mod util; | 25 | mod util; |
26 | mod conv; | ||
26 | 27 | ||
27 | use threadpool::ThreadPool; | 28 | use threadpool::ThreadPool; |
28 | use crossbeam_channel::{bounded, Sender, Receiver}; | 29 | use crossbeam_channel::{bounded, Sender, Receiver}; |
@@ -33,7 +34,7 @@ use libanalysis::{WorldState, World}; | |||
33 | use ::{ | 34 | use ::{ |
34 | io::{Io, RawMsg, RawRequest}, | 35 | io::{Io, RawMsg, RawRequest}, |
35 | handlers::{handle_syntax_tree, handle_extend_selection, publish_diagnostics, publish_decorations, | 36 | handlers::{handle_syntax_tree, handle_extend_selection, publish_diagnostics, publish_decorations, |
36 | handle_document_symbol}, | 37 | handle_document_symbol, handle_code_action}, |
37 | util::{FilePath, FnBox} | 38 | util::{FilePath, FnBox} |
38 | }; | 39 | }; |
39 | 40 | ||
@@ -182,6 +183,10 @@ fn main_loop( | |||
182 | handle_request_on_threadpool::<req::DocumentSymbolRequest>( | 183 | handle_request_on_threadpool::<req::DocumentSymbolRequest>( |
183 | &mut req, pool, world, &sender, handle_document_symbol | 184 | &mut req, pool, world, &sender, handle_document_symbol |
184 | )?; | 185 | )?; |
186 | handle_request_on_threadpool::<req::CodeActionRequest>( | ||
187 | &mut req, pool, world, &sender, handle_code_action | ||
188 | )?; | ||
189 | |||
185 | let mut shutdown = false; | 190 | let mut shutdown = false; |
186 | dispatch::handle_request::<req::Shutdown, _>(&mut req, |(), resp| { | 191 | dispatch::handle_request::<req::Shutdown, _>(&mut req, |(), resp| { |
187 | resp.result(io, ())?; | 192 | resp.result(io, ())?; |