aboutsummaryrefslogtreecommitdiff
path: root/crates/server/src/main.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-11 12:44:12 +0100
committerAleksey Kladov <[email protected]>2018-08-11 12:44:12 +0100
commitf2291d6a760f8a2d15074b5874facb03f5f838bc (patch)
tree00faff0402a675c4a041966e71b1789bfb086dcc /crates/server/src/main.rs
parent7afd84febc76a75a3ed1be75c57ff35d7b8b3de6 (diff)
doc symbols
Diffstat (limited to 'crates/server/src/main.rs')
-rw-r--r--crates/server/src/main.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/crates/server/src/main.rs b/crates/server/src/main.rs
index aeb4f807b..916638d49 100644
--- a/crates/server/src/main.rs
+++ b/crates/server/src/main.rs
@@ -11,11 +11,11 @@ extern crate crossbeam_channel;
11extern crate threadpool; 11extern crate threadpool;
12#[macro_use] 12#[macro_use]
13extern crate log; 13extern crate log;
14extern crate url;
15extern crate url_serde; 14extern crate url_serde;
16extern crate flexi_logger; 15extern crate flexi_logger;
17extern crate libeditor; 16extern crate libeditor;
18extern crate libanalysis; 17extern crate libanalysis;
18extern crate libsyntax2;
19 19
20mod io; 20mod io;
21mod caps; 21mod caps;
@@ -27,12 +27,13 @@ mod util;
27use threadpool::ThreadPool; 27use threadpool::ThreadPool;
28use crossbeam_channel::{bounded, Sender, Receiver}; 28use crossbeam_channel::{bounded, Sender, Receiver};
29use flexi_logger::Logger; 29use flexi_logger::Logger;
30use url::Url; 30use languageserver_types::Url;
31use libanalysis::{WorldState, World}; 31use libanalysis::{WorldState, World};
32 32
33use ::{ 33use ::{
34 io::{Io, RawMsg, RawRequest}, 34 io::{Io, RawMsg, RawRequest},
35 handlers::{handle_syntax_tree, handle_extend_selection, publish_diagnostics, publish_decorations}, 35 handlers::{handle_syntax_tree, handle_extend_selection, publish_diagnostics, publish_decorations,
36 handle_document_symbol},
36 util::{FilePath, FnBox} 37 util::{FilePath, FnBox}
37}; 38};
38 39
@@ -178,6 +179,9 @@ fn main_loop(
178 handle_request_on_threadpool::<req::ExtendSelection>( 179 handle_request_on_threadpool::<req::ExtendSelection>(
179 &mut req, pool, world, &sender, handle_extend_selection 180 &mut req, pool, world, &sender, handle_extend_selection
180 )?; 181 )?;
182 handle_request_on_threadpool::<req::DocumentSymbolRequest>(
183 &mut req, pool, world, &sender, handle_document_symbol
184 )?;
181 let mut shutdown = false; 185 let mut shutdown = false;
182 dispatch::handle_request::<req::Shutdown, _>(&mut req, |(), resp| { 186 dispatch::handle_request::<req::Shutdown, _>(&mut req, |(), resp| {
183 resp.result(io, ())?; 187 resp.result(io, ())?;