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 10:41:29 +03:00
committed by GitHub
parent eb7fe57453
commit 75948e536f
4 changed files with 88 additions and 27 deletions
@@ -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/"]),
)]);
});
})