From 6453b29cb571d5c54bac427842ba8a9dd6874861 Mon Sep 17 00:00:00 2001 From: "Jeremy A. Kolb" Date: Mon, 22 Oct 2018 13:49:27 -0400 Subject: Add LspError to explicity return errors from LSP handlers Fixes #145 --- crates/ra_lsp_server/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crates/ra_lsp_server/src/lib.rs') 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; extern crate log; extern crate cargo_metadata; extern crate drop_bomb; +#[macro_use] +extern crate failure_derive; extern crate im; extern crate relative_path; extern crate rustc_hash; @@ -34,4 +36,4 @@ pub mod thread_watcher; mod vfs; pub type Result = ::std::result::Result; -pub use crate::{caps::server_capabilities, main_loop::main_loop}; +pub use crate::{caps::server_capabilities, main_loop::main_loop, main_loop::LspError}; \ No newline at end of file -- cgit v1.2.3