diff options
author | Aleksey Kladov <[email protected]> | 2018-08-11 12:44:12 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-11 12:44:12 +0100 |
commit | f2291d6a760f8a2d15074b5874facb03f5f838bc (patch) | |
tree | 00faff0402a675c4a041966e71b1789bfb086dcc /crates/server/src/main.rs | |
parent | 7afd84febc76a75a3ed1be75c57ff35d7b8b3de6 (diff) |
doc symbols
Diffstat (limited to 'crates/server/src/main.rs')
-rw-r--r-- | crates/server/src/main.rs | 10 |
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; | |||
11 | extern crate threadpool; | 11 | extern crate threadpool; |
12 | #[macro_use] | 12 | #[macro_use] |
13 | extern crate log; | 13 | extern crate log; |
14 | extern crate url; | ||
15 | extern crate url_serde; | 14 | extern crate url_serde; |
16 | extern crate flexi_logger; | 15 | extern crate flexi_logger; |
17 | extern crate libeditor; | 16 | extern crate libeditor; |
18 | extern crate libanalysis; | 17 | extern crate libanalysis; |
18 | extern crate libsyntax2; | ||
19 | 19 | ||
20 | mod io; | 20 | mod io; |
21 | mod caps; | 21 | mod caps; |
@@ -27,12 +27,13 @@ mod util; | |||
27 | use threadpool::ThreadPool; | 27 | use threadpool::ThreadPool; |
28 | use crossbeam_channel::{bounded, Sender, Receiver}; | 28 | use crossbeam_channel::{bounded, Sender, Receiver}; |
29 | use flexi_logger::Logger; | 29 | use flexi_logger::Logger; |
30 | use url::Url; | 30 | use languageserver_types::Url; |
31 | use libanalysis::{WorldState, World}; | 31 | use libanalysis::{WorldState, World}; |
32 | 32 | ||
33 | use ::{ | 33 | use ::{ |
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, ())?; |