From 2c7ce423da08bca39de575511a9f4e1c03a7826c Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Mon, 30 Mar 2026 08:09:49 -0300 Subject: [PATCH] sidebar: Clarify which projects are remote in the UI (#52720) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR adds a little server icon to the side of the project label to clarify that's a remote project. This is particularly useful when having the remote and non-remote version of a project open in the same multi-workspace/window. Screenshot 2026-03-30 at 7  59@2x Release Notes: - N/A --- crates/sidebar/src/sidebar.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crates/sidebar/src/sidebar.rs b/crates/sidebar/src/sidebar.rs index 4263d64ffb72e262f9f74bf287bd33bf5c3dfe17..538020c646b4eb2607a5adb686a60dbc03d37940 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(