From f2291d6a760f8a2d15074b5874facb03f5f838bc Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 11 Aug 2018 14:44:12 +0300 Subject: doc symbols --- crates/server/src/main.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'crates/server/src/main.rs') 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; extern crate threadpool; #[macro_use] extern crate log; -extern crate url; extern crate url_serde; extern crate flexi_logger; extern crate libeditor; extern crate libanalysis; +extern crate libsyntax2; mod io; mod caps; @@ -27,12 +27,13 @@ mod util; use threadpool::ThreadPool; use crossbeam_channel::{bounded, Sender, Receiver}; use flexi_logger::Logger; -use url::Url; +use languageserver_types::Url; use libanalysis::{WorldState, World}; use ::{ io::{Io, RawMsg, RawRequest}, - handlers::{handle_syntax_tree, handle_extend_selection, publish_diagnostics, publish_decorations}, + handlers::{handle_syntax_tree, handle_extend_selection, publish_diagnostics, publish_decorations, + handle_document_symbol}, util::{FilePath, FnBox} }; @@ -178,6 +179,9 @@ fn main_loop( handle_request_on_threadpool::( &mut req, pool, world, &sender, handle_extend_selection )?; + handle_request_on_threadpool::( + &mut req, pool, world, &sender, handle_document_symbol + )?; let mut shutdown = false; dispatch::handle_request::(&mut req, |(), resp| { resp.result(io, ())?; -- cgit v1.2.3