aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/src/bin/args.rs1
-rw-r--r--crates/rust-analyzer/src/bin/main.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/bin/args.rs b/crates/rust-analyzer/src/bin/args.rs
index abc00d03b..c5f814021 100644
--- a/crates/rust-analyzer/src/bin/args.rs
+++ b/crates/rust-analyzer/src/bin/args.rs
@@ -57,6 +57,7 @@ FLAGS:
57ENVIRONMENTAL VARIABLES: 57ENVIRONMENTAL VARIABLES:
58 RA_LOG Set log filter in env_logger format 58 RA_LOG Set log filter in env_logger format
59 RA_PROFILE Enable hierarchical profiler 59 RA_PROFILE Enable hierarchical profiler
60 RA_WAIT_DBG If set acts like a --wait-dbg flag
60 61
61COMMANDS: 62COMMANDS:
62 63
diff --git a/crates/rust-analyzer/src/bin/main.rs b/crates/rust-analyzer/src/bin/main.rs
index 0cddfecb5..80637cbff 100644
--- a/crates/rust-analyzer/src/bin/main.rs
+++ b/crates/rust-analyzer/src/bin/main.rs
@@ -29,7 +29,7 @@ fn main() {
29 29
30fn try_main() -> Result<()> { 30fn try_main() -> Result<()> {
31 let args = args::Args::parse()?; 31 let args = args::Args::parse()?;
32 if args.wait_dbg { 32 if args.wait_dbg || env::var("RA_WAIT_DBG").is_ok() {
33 #[allow(unused_mut)] 33 #[allow(unused_mut)]
34 let mut d = 4; 34 let mut d = 4;
35 while d == 4 { 35 while d == 4 {