Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
debugger: Ensure that Python's adapter work dir exists (#35618)
Piotr Osiewiczafc4f5030002
diff --git a/crates/dap_adapters/src/python.rs b/crates/dap_adapters/src/python.rsindex 455440d6d36..f499244966e 100644--- a/crates/dap_adapters/src/python.rs+++ b/crates/dap_adapters/src/python.rs@@ -101,6 +101,9 @@ impl PythonDebugAdapter {.await.context("Could not find Python installation for DebugPy")?;let work_dir = debug_adapters_dir().join(Self::ADAPTER_NAME);+ if !work_dir.exists() {+ std::fs::create_dir_all(&work_dir)?;+ }let mut path = work_dir.clone();path.push("debugpy-venv");if !path.exists() {diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rsindex 825aea615f8..71b29909a12 100644--- a/crates/zed/src/main.rs+++ b/crates/zed/src/main.rs@@ -1125,6 +1125,7 @@ fn init_paths() -> HashMap<io::ErrorKind, Vec<&'static Path>> {paths::config_dir(),paths::extensions_dir(),paths::languages_dir(),+ paths::debug_adapters_dir(),paths::database_dir(),paths::logs_dir(),paths::temp_dir(),