Auto merge of #12456 - lnicola:thread-names, r=lnicola

internal: Shorten main thread names

Linux effectively has a 15 byte limit, which resulted in `rust-analyzer s` and `rust-analyzer p`. That's still unambiguous, but probably not obvious.
This commit is contained in:
bors 2022-06-03 04:28:07 +00:00
commit d1968a38b9

View file

@ -77,12 +77,10 @@ fn try_main() -> Result<()> {
println!("{}", flags::RustAnalyzer::HELP); println!("{}", flags::RustAnalyzer::HELP);
return Ok(()); return Ok(());
} }
with_extra_thread("rust-analyzer server thread", run_server)?; with_extra_thread("LspServer", run_server)?;
} }
flags::RustAnalyzerCmd::ProcMacro(flags::ProcMacro) => { flags::RustAnalyzerCmd::ProcMacro(flags::ProcMacro) => {
with_extra_thread("rust-analyzer proc-macro expander", || { with_extra_thread("MacroExpander", || proc_macro_srv::cli::run().map_err(Into::into))?;
proc_macro_srv::cli::run().map_err(Into::into)
})?;
} }
flags::RustAnalyzerCmd::Parse(cmd) => cmd.run()?, flags::RustAnalyzerCmd::Parse(cmd) => cmd.run()?,
flags::RustAnalyzerCmd::Symbols(cmd) => cmd.run()?, flags::RustAnalyzerCmd::Symbols(cmd) => cmd.run()?,