aboutsummaryrefslogtreecommitdiff
path: root/crates/server/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/server/src/main.rs')
-rw-r--r--crates/server/src/main.rs7
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;
23mod dispatch; 23mod dispatch;
24mod handlers; 24mod handlers;
25mod util; 25mod util;
26mod conv;
26 27
27use threadpool::ThreadPool; 28use threadpool::ThreadPool;
28use crossbeam_channel::{bounded, Sender, Receiver}; 29use crossbeam_channel::{bounded, Sender, Receiver};
@@ -33,7 +34,7 @@ use libanalysis::{WorldState, World};
33use ::{ 34use ::{
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, ())?;