Fix worktree order serialization (#14676)

Fixes an issue in the serialization of workspaces that lead to incorrect
ordering of worktrees and refactors some other parts of the code to use
the new method.

Release Notes:

- N/A
This commit is contained in:
Elliot Thomas 2024-07-18 08:41:29 +01:00 committed by GitHub
parent eb7fe57453
commit 75948e536f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 88 additions and 27 deletions

View file

@ -707,7 +707,7 @@ mod tests {
use project::{project_settings::ProjectSettings, Project};
use serde_json::json;
use settings::SettingsStore;
use workspace::{open_paths, AppState, LocalPaths};
use workspace::{open_paths, AppState};
use super::*;
@ -782,7 +782,7 @@ mod tests {
}];
delegate.set_workspaces(vec![(
WorkspaceId::default(),
LocalPaths::new(vec!["/test/path/"]).into(),
SerializedWorkspaceLocation::from_local_paths(vec!["/test/path/"]),
)]);
});
})