dap: Enable adapter logs for StdioTransport delegate (#40262)

This is the first towards better logs for adapter binaries. Next up I
intend to somehow allow `codelldb` adapter in Zed to permit simple log
level so that we can pass `RUST_LOG=level` when spawning the child
process.

Release Notes:

- N/A
This commit is contained in:
Jakub Konka
2025-10-15 19:01:19 +02:00
committed by GitHub
parent 3e2680d650
commit bb0cc1059c
+3 -3
View File
@@ -676,7 +676,7 @@ impl StdioTransport {
let mut process = Child::spawn(command, Stdio::piped())?;
let err_task = process.stderr.take().map(|stderr| {
let _stderr_task = process.stderr.take().map(|stderr| {
cx.background_spawn(TransportDelegate::handle_adapter_log(
stderr,
IoKind::StdErr,
@@ -688,14 +688,14 @@ impl StdioTransport {
Ok(Self {
process,
_stderr_task: err_task,
_stderr_task,
})
}
}
impl Transport for StdioTransport {
fn has_adapter_logs(&self) -> bool {
false
true
}
fn kill(&mut self) {