Fix recent project index order (#12507)
Fixed bug introduced in: https://github.com/zed-industries/zed/pull/12502 Filtering before `enumerate` call breaks project order and instead of hiding current project it hides some other project. Release Notes: - N/A
This commit is contained in:
@@ -228,8 +228,8 @@ impl PickerDelegate for RecentProjectsDelegate {
|
||||
let candidates = self
|
||||
.workspaces
|
||||
.iter()
|
||||
.filter(|(id, _)| !self.is_current_workspace(*id, cx))
|
||||
.enumerate()
|
||||
.filter(|(_, (id, _))| !self.is_current_workspace(*id, cx))
|
||||
.map(|(id, (_, location))| {
|
||||
let combined_string = match location {
|
||||
SerializedWorkspaceLocation::Local(paths, _) => paths
|
||||
|
||||
Reference in New Issue
Block a user