Add WSL distro labels to open recent (#40375)
Closes #40358 Release Notes: - Windows: improved recently open folders in WSL
This commit is contained in:
@@ -471,7 +471,15 @@ impl PickerDelegate for RecentProjectsDelegate {
|
||||
})
|
||||
.unzip();
|
||||
|
||||
let prefix = match &location {
|
||||
SerializedWorkspaceLocation::Remote(RemoteConnectionOptions::Wsl(wsl)) => {
|
||||
Some(SharedString::from(&wsl.distro_name))
|
||||
}
|
||||
_ => None,
|
||||
};
|
||||
|
||||
let highlighted_match = HighlightedMatchWithPaths {
|
||||
prefix,
|
||||
match_label: HighlightedMatch::join(match_labels.into_iter().flatten(), ", "),
|
||||
paths,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user