diff options
author | Dmitry Sharshakov | 2021-09-06 10:49:31 +0000 |
---|---|---|
committer | Dmitry Sharshakov | 2021-09-06 10:49:31 +0000 |
commit | 413e477dc2d4792596f99979140d2879ec3d4f4f (patch) | |
tree | 08635bffdf5ef85ab2f9cae177216a96ae9543bf /helix-dap/src/client.rs | |
parent | 507a1f8dd6a7f88b979a09532a14a10eda72867b (diff) |
lldb: use stdio transport by default
Diffstat (limited to 'helix-dap/src/client.rs')
-rw-r--r-- | helix-dap/src/client.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/helix-dap/src/client.rs b/helix-dap/src/client.rs index e5f8feb9..2ae82422 100644 --- a/helix-dap/src/client.rs +++ b/helix-dap/src/client.rs @@ -116,12 +116,16 @@ impl Client { // TODO: do we need bufreader/writer here? or do we use async wrappers on unblock? let writer = BufWriter::new(process.stdin.take().expect("Failed to open stdin")); let reader = BufReader::new(process.stdout.take().expect("Failed to open stdout")); - let errors = BufReader::new(process.stderr.take().expect("Failed to open stderr")); + let errors = process.stderr.take().map(BufReader::new); Self::streams( Box::new(BufReader::new(reader)), Box::new(writer), - Some(Box::new(BufReader::new(errors))), + // errors.map(|errors| Box::new(BufReader::new(errors))), + match errors { + Some(errors) => Some(Box::new(BufReader::new(errors))), + None => None, + }, id, Some(process), ) |