mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-13 08:27:17 +00:00
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:
commit
d1968a38b9
1 changed files with 2 additions and 4 deletions
|
@ -77,12 +77,10 @@ fn try_main() -> Result<()> {
|
|||
println!("{}", flags::RustAnalyzer::HELP);
|
||||
return Ok(());
|
||||
}
|
||||
with_extra_thread("rust-analyzer server thread", run_server)?;
|
||||
with_extra_thread("LspServer", run_server)?;
|
||||
}
|
||||
flags::RustAnalyzerCmd::ProcMacro(flags::ProcMacro) => {
|
||||
with_extra_thread("rust-analyzer proc-macro expander", || {
|
||||
proc_macro_srv::cli::run().map_err(Into::into)
|
||||
})?;
|
||||
with_extra_thread("MacroExpander", || proc_macro_srv::cli::run().map_err(Into::into))?;
|
||||
}
|
||||
flags::RustAnalyzerCmd::Parse(cmd) => cmd.run()?,
|
||||
flags::RustAnalyzerCmd::Symbols(cmd) => cmd.run()?,
|
||||
|
|
Loading…
Reference in a new issue