From 62c312b35ff944f72a9bd1104dbbdcc1cdd885e4 Mon Sep 17 00:00:00 2001 From: Lee Nussbaum Date: Mon, 8 Dec 2025 09:07:03 -0500 Subject: [PATCH] Update Recent Projects picker to show SSH host (#44349) **Problem addressed:** Cannot distinguish an identical path on multiple remote hosts in the "Recent Projects" picker. **Related work:** - Issue #40358 (already closed) identified the issue in the "Expected Behavior" section for both WSL and SSH remotes. - PR #40375 implemented WSL distro labels. **Screenshots:** Before: screenshot-sample-project-before After: screenshot-sample-project-after **Implementation notes:** RemoteConnectionOptions::display_name() will be subject to exhaustiveness checking on RemoteConnectionOption variants. Keeps the same UI approach as the WSL distro variants. Release Notes: - Improved Recent Projects picker: now displays SSH hostname with remotes. --- crates/recent_projects/src/recent_projects.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/recent_projects/src/recent_projects.rs b/crates/recent_projects/src/recent_projects.rs index 8c081205444fbc13fb1d94c297946261fcab7fb3..7647dc1ed46cb9d87c7f889188f834dcbd3a456a 100644 --- a/crates/recent_projects/src/recent_projects.rs +++ b/crates/recent_projects/src/recent_projects.rs @@ -541,8 +541,8 @@ impl PickerDelegate for RecentProjectsDelegate { .unzip(); let prefix = match &location { - SerializedWorkspaceLocation::Remote(RemoteConnectionOptions::Wsl(wsl)) => { - Some(SharedString::from(&wsl.distro_name)) + SerializedWorkspaceLocation::Remote(options) => { + Some(SharedString::from(options.display_name())) } _ => None, };