Unnamed repository; edit this file 'description' to name the repository.
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.
bors 2022-06-03
parent 88024c7 · parent 7066b8e · commit d1968a3
-rw-r--r--crates/rust-analyzer/src/bin/main.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/rust-analyzer/src/bin/main.rs b/crates/rust-analyzer/src/bin/main.rs
index a9e79cc7c3..4787786cac 100644
--- a/crates/rust-analyzer/src/bin/main.rs
+++ b/crates/rust-analyzer/src/bin/main.rs
@@ -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()?,