Add LspError to explicity return errors from LSP handlers

Fixes #145
This commit is contained in:
Jeremy A. Kolb 2018-10-22 13:49:27 -04:00
parent 5a64b9a811
commit 6453b29cb5
5 changed files with 25 additions and 4 deletions

View file

@ -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<T> = ::std::result::Result<T, ::failure::Error>;
pub use crate::{caps::server_capabilities, main_loop::main_loop};
pub use crate::{caps::server_capabilities, main_loop::main_loop, main_loop::LspError};