From 23c06db9c236db0f9c8ef5117fb1adefd6616c43 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 12 Aug 2018 21:02:56 +0300 Subject: Half of code-actions --- crates/server/src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'crates/server/src/main.rs') 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; mod dispatch; mod handlers; mod util; +mod conv; use threadpool::ThreadPool; use crossbeam_channel::{bounded, Sender, Receiver}; @@ -33,7 +34,7 @@ use libanalysis::{WorldState, World}; use ::{ io::{Io, RawMsg, RawRequest}, handlers::{handle_syntax_tree, handle_extend_selection, publish_diagnostics, publish_decorations, - handle_document_symbol}, + handle_document_symbol, handle_code_action}, util::{FilePath, FnBox} }; @@ -182,6 +183,10 @@ fn main_loop( handle_request_on_threadpool::( &mut req, pool, world, &sender, handle_document_symbol )?; + handle_request_on_threadpool::( + &mut req, pool, world, &sender, handle_code_action + )?; + let mut shutdown = false; dispatch::handle_request::(&mut req, |(), resp| { resp.result(io, ())?; -- cgit v1.2.3