diff options
| author | bors <bors@rust-lang.org> | 2022-06-03 04:28:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-06-03 04:28:07 +0000 |
| commit | d1968a38b91cba4ae6f45b7cadfa53cffb614f4d (patch) | |
| tree | 0854384df88832f37ad4fd5687db2e12a29bbd7d | |
| parent | 88024c7ec2d44a8be8bf05a6580409200cf726fc (diff) | |
| parent | 7066b8e0cacfdda0143e6059ab3c7d757cddf4d9 (diff) | |
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.
| -rw-r--r-- | crates/rust-analyzer/src/bin/main.rs | 6 |
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 a9e79cc7c3e..4787786cac9 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()?, |
