mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-15 14:43:58 +00:00
Merge #1781
1781: don't deadlock on shutdown r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
3bd99af197
3 changed files with 4 additions and 4 deletions
|
@ -66,7 +66,7 @@ fn run_server() -> Result<()> {
|
|||
workspace_roots,
|
||||
initialize_params.capabilities,
|
||||
server_config,
|
||||
&connection,
|
||||
connection,
|
||||
)?;
|
||||
|
||||
log::info!("shutting down IO...");
|
||||
|
|
|
@ -52,7 +52,7 @@ pub fn main_loop(
|
|||
ws_roots: Vec<PathBuf>,
|
||||
client_caps: ClientCapabilities,
|
||||
config: ServerConfig,
|
||||
connection: &Connection,
|
||||
connection: Connection,
|
||||
) -> Result<()> {
|
||||
log::info!("server_config: {:#?}", config);
|
||||
|
||||
|
@ -174,7 +174,7 @@ pub fn main_loop(
|
|||
&pool,
|
||||
&task_sender,
|
||||
&libdata_sender,
|
||||
connection,
|
||||
&connection,
|
||||
&mut world_state,
|
||||
&mut loop_state,
|
||||
event,
|
||||
|
|
|
@ -118,7 +118,7 @@ impl Server {
|
|||
experimental: None,
|
||||
},
|
||||
ServerConfig { with_sysroot, ..ServerConfig::default() },
|
||||
&connection,
|
||||
connection,
|
||||
)
|
||||
.unwrap()
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue