This commit is contained in:
Aleksey Kladov
2018-09-01 18:03:57 +03:00
parent 8f1ce82753
commit 4268fbeaa1
4 changed files with 38 additions and 54 deletions

View File

@@ -55,7 +55,13 @@ fn main() -> Result<()> {
fn main_inner() -> Result<()> {
let (receiver, sender, threads) = stdio_transport();
run_server(caps::server_capabilities(), main_loop::main_loop, receiver, sender)?;
let root = ::std::env::current_dir()?;
run_server(
caps::server_capabilities(),
|r, s| main_loop::main_loop(root, r, s),
receiver,
sender,
)?;
info!("shutting down IO...");
threads.join()?;
info!("... IO is down");