mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-04 07:29:32 +00:00
Fix recent project index order (#12507)
Some checks are pending
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Some checks are pending
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
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:
parent
dc141d0f61
commit
819bb2663d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue