Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ruff: Fix wrong Ruff path on Windows (#17883)
ClanEverfc43b21e787a
diff --git a/extensions/ruff/src/ruff.rs b/extensions/ruff/src/ruff.rsindex c7c51ec7b9d..048c5893ca7 100644--- a/extensions/ruff/src/ruff.rs+++ b/extensions/ruff/src/ruff.rs@@ -89,7 +89,10 @@ impl RuffExtension {.ok_or_else(|| format!("no asset found matching {:?}", asset_name))?;let version_dir = format!("ruff-{}", release.version);- let binary_path = format!("{version_dir}/{asset_stem}/ruff");+ let binary_path = match platform {+ zed::Os::Windows => format!("{version_dir}/ruff.exe"),+ _ => format!("{version_dir}/{asset_stem}/ruff"),+ };if !fs::metadata(&binary_path).map_or(false, |stat| stat.is_file()) {zed::set_language_server_installation_status(