aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/lib.rs
diff options
context:
space:
mode:
authorJeremy A. Kolb <[email protected]>2018-10-22 18:49:27 +0100
committerJeremy A. Kolb <[email protected]>2018-10-22 18:49:27 +0100
commit6453b29cb571d5c54bac427842ba8a9dd6874861 (patch)
treec74fa43dddae877964522452f923a5f46f7c8525 /crates/ra_lsp_server/src/lib.rs
parent5a64b9a811554473e65db7e7ae515079ca48c70b (diff)
Add LspError to explicity return errors from LSP handlers
Fixes #145
Diffstat (limited to 'crates/ra_lsp_server/src/lib.rs')
-rw-r--r--crates/ra_lsp_server/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/lib.rs b/crates/ra_lsp_server/src/lib.rs
index f1b17f282..ce77b2a33 100644
--- a/crates/ra_lsp_server/src/lib.rs
+++ b/crates/ra_lsp_server/src/lib.rs
@@ -12,6 +12,8 @@ extern crate rayon;
12extern crate log; 12extern crate log;
13extern crate cargo_metadata; 13extern crate cargo_metadata;
14extern crate drop_bomb; 14extern crate drop_bomb;
15#[macro_use]
16extern crate failure_derive;
15extern crate im; 17extern crate im;
16extern crate relative_path; 18extern crate relative_path;
17extern crate rustc_hash; 19extern crate rustc_hash;
@@ -34,4 +36,4 @@ pub mod thread_watcher;
34mod vfs; 36mod vfs;
35 37
36pub type Result<T> = ::std::result::Result<T, ::failure::Error>; 38pub type Result<T> = ::std::result::Result<T, ::failure::Error>;
37pub use crate::{caps::server_capabilities, main_loop::main_loop}; 39pub use crate::{caps::server_capabilities, main_loop::main_loop, main_loop::LspError}; \ No newline at end of file