Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
sidebar: Clarify which projects are remote in the UI (#52720)
Danilo Leal2c7ce423da08
diff --git a/crates/sidebar/src/sidebar.rs b/crates/sidebar/src/sidebar.rsindex 4263d64ffb7..538020c646b 100644--- a/crates/sidebar/src/sidebar.rs+++ b/crates/sidebar/src/sidebar.rs@@ -1220,6 +1220,17 @@ impl Sidebar {.element_active.blend(color.element_background.opacity(0.2));+ let is_remote = workspace.read(cx).project().read(cx).is_via_remote_server();+ let remote_id = SharedString::from(format!("{id_prefix}-remote-project-{ix}"));+ let remote_icon = div()+ .id(remote_id)+ .child(+ Icon::new(IconName::Server)+ .size(IconSize::XSmall)+ .color(Color::Muted),+ )+ .tooltip(Tooltip::text("Remote Project"));+h_flex().id(id).group(&group_name)@@ -1251,6 +1262,7 @@ impl Sidebar {),).child(label)+ .when(is_remote, |this| this.child(remote_icon)).when(is_collapsed, |this| {this.when(has_running_threads, |this| {this.child(