Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Update Recent Projects picker to show SSH host (#44349)

Lee Nussbaum62c312b35ff9
diff --git a/crates/recent_projects/src/recent_projects.rs b/crates/recent_projects/src/recent_projects.rs
index 8c081205444..7647dc1ed46 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,
};