mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
lldb: use stdio transport by default
This commit is contained in:
parent
507a1f8dd6
commit
413e477dc2
@ -98,6 +98,7 @@ pub struct DebugAdapterConfig {
|
||||
pub name: String,
|
||||
pub transport: String,
|
||||
pub command: String,
|
||||
#[serde(default)]
|
||||
pub args: Vec<String>,
|
||||
pub port_arg: Option<String>,
|
||||
pub templates: Vec<DebugTemplate>,
|
||||
|
@ -116,12 +116,16 @@ pub fn stdio(
|
||||
// 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),
|
||||
)
|
||||
|
@ -22,10 +22,8 @@ indent = { tab-width = 4, unit = " " }
|
||||
|
||||
[language.debugger]
|
||||
name = "lldb-vscode"
|
||||
transport = "tcp"
|
||||
transport = "stdio"
|
||||
command = "lldb-vscode"
|
||||
args = []
|
||||
port-arg = "-p {}"
|
||||
|
||||
[[language.debugger.templates]]
|
||||
name = "binary"
|
||||
@ -91,10 +89,8 @@ indent = { tab-width = 2, unit = " " }
|
||||
|
||||
[language.debugger]
|
||||
name = "lldb-vscode"
|
||||
transport = "tcp"
|
||||
transport = "stdio"
|
||||
command = "lldb-vscode"
|
||||
args = []
|
||||
port-arg = "-p {}"
|
||||
|
||||
[[language.debugger.templates]]
|
||||
name = "binary"
|
||||
@ -121,10 +117,8 @@ indent = { tab-width = 2, unit = " " }
|
||||
|
||||
[language.debugger]
|
||||
name = "lldb-vscode"
|
||||
transport = "tcp"
|
||||
transport = "stdio"
|
||||
command = "lldb-vscode"
|
||||
args = []
|
||||
port-arg = "-p {}"
|
||||
|
||||
[[language.debugger.templates]]
|
||||
name = "binary"
|
||||
|
Loading…
Reference in New Issue
Block a user