Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
project_panel: Fix Reveal in File Manager for WSL projects (#50610)
Sarthak Mishra152d3eafcaf4
diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rsindex 7f746a6ccd7..0dd19dddde7 100644--- a/crates/project_panel/src/project_panel.rs+++ b/crates/project_panel/src/project_panel.rs@@ -6457,11 +6457,14 @@ impl Render for ProjectPanel {el.on_action(cx.listener(Self::trash))})})- .when(project.is_local(), |el| {- el.on_action(cx.listener(Self::reveal_in_finder))- .on_action(cx.listener(Self::open_system))- .on_action(cx.listener(Self::open_in_terminal))- })+ .when(+ project.is_local() || project.is_via_wsl_with_host_interop(cx),+ |el| {+ el.on_action(cx.listener(Self::reveal_in_finder))+ .on_action(cx.listener(Self::open_system))+ .on_action(cx.listener(Self::open_in_terminal))+ },+ ).when(project.is_via_remote_server(), |el| {el.on_action(cx.listener(Self::open_in_terminal)).on_action(cx.listener(Self::download_from_remote))