Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

debugger/lldb: Remove xcrun-based lldb-dap binary lookup (#27405)

Piotr Osiewicz3205ae3884f9
diff --git a/crates/dap_adapters/src/lldb.rs b/crates/dap_adapters/src/lldb.rs
index be4800cc76d..4d4ecd00c1b 100644
--- a/crates/dap_adapters/src/lldb.rs
+++ b/crates/dap_adapters/src/lldb.rs
@@ -37,15 +37,6 @@ impl DebugAdapter for LldbDebugAdapter {
) -> Result<DebugAdapterBinary> {
let lldb_dap_path = if let Some(user_installed_path) = user_installed_path {
user_installed_path.to_string_lossy().into()
- } else if cfg!(target_os = "macos") {
- util::command::new_smol_command("xcrun")
- .args(&["-f", "lldb-dap"])
- .output()
- .await
- .ok()
- .and_then(|output| String::from_utf8(output.stdout).ok())
- .map(|path| path.trim().to_string())
- .ok_or(anyhow!("Failed to find lldb-dap in user's path"))?
} else {
delegate
.which(OsStr::new("lldb-dap"))