mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Prepare gen_lsp_server for publishing
This commit is contained in:
parent
c9798c0e6d
commit
239213a3db
4 changed files with 88 additions and 17 deletions
|
@ -35,14 +35,14 @@ fn main_inner() -> Result<()> {
|
|||
let cwd = ::std::env::current_dir()?;
|
||||
run_server(
|
||||
ra_lsp_server::server_capabilities(),
|
||||
receiver,
|
||||
sender,
|
||||
|params, r, s| {
|
||||
let root = params.root_uri
|
||||
.and_then(|it| it.to_file_path().ok())
|
||||
.unwrap_or(cwd);
|
||||
ra_lsp_server::main_loop(false, root, r, s)
|
||||
},
|
||||
receiver,
|
||||
sender,
|
||||
)?;
|
||||
info!("shutting down IO...");
|
||||
threads.join()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue