Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
python: Create DAP download directory sooner (#35986)
Piotr Osiewicz39dfd52d041c
diff --git a/crates/dap_adapters/src/python.rs b/crates/dap_adapters/src/python.rsindex 461ce6fbb31..a2bd934311e 100644--- a/crates/dap_adapters/src/python.rs+++ b/crates/dap_adapters/src/python.rs@@ -152,6 +152,9 @@ impl PythonDebugAdapter {maybe!(async move {let response = latest_release.filter(|response| response.status().is_success())?;+ let download_dir = debug_adapters_dir().join(Self::ADAPTER_NAME);+ std::fs::create_dir_all(&download_dir).ok()?;+let mut output = String::new();response.into_body()