diff options
author | Aleksey Kladov <[email protected]> | 2018-10-09 10:55:23 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-10-09 10:55:23 +0100 |
commit | 239213a3db61530c073d366b50c31b3a86aad879 (patch) | |
tree | b1ab200c78d11c8d205056514a173fbf5cecf48b /crates/ra_lsp_server/src/main.rs | |
parent | c9798c0e6da53c132021f03ac7a50ccd8714b371 (diff) |
Prepare gen_lsp_server for publishing
Diffstat (limited to 'crates/ra_lsp_server/src/main.rs')
-rw-r--r-- | crates/ra_lsp_server/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_lsp_server/src/main.rs b/crates/ra_lsp_server/src/main.rs index c547764f6..e5d1792b7 100644 --- a/crates/ra_lsp_server/src/main.rs +++ b/crates/ra_lsp_server/src/main.rs | |||
@@ -35,14 +35,14 @@ fn main_inner() -> Result<()> { | |||
35 | let cwd = ::std::env::current_dir()?; | 35 | let cwd = ::std::env::current_dir()?; |
36 | run_server( | 36 | run_server( |
37 | ra_lsp_server::server_capabilities(), | 37 | ra_lsp_server::server_capabilities(), |
38 | receiver, | ||
39 | sender, | ||
38 | |params, r, s| { | 40 | |params, r, s| { |
39 | let root = params.root_uri | 41 | let root = params.root_uri |
40 | .and_then(|it| it.to_file_path().ok()) | 42 | .and_then(|it| it.to_file_path().ok()) |
41 | .unwrap_or(cwd); | 43 | .unwrap_or(cwd); |
42 | ra_lsp_server::main_loop(false, root, r, s) | 44 | ra_lsp_server::main_loop(false, root, r, s) |
43 | }, | 45 | }, |
44 | receiver, | ||
45 | sender, | ||
46 | )?; | 46 | )?; |
47 | info!("shutting down IO..."); | 47 | info!("shutting down IO..."); |
48 | threads.join()?; | 48 | threads.join()?; |