diff options
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()?; |