Address issue with workspaces where single file worktrees such as those from git commit messages would get restored

Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
Kay Simmons 2023-01-09 16:18:04 -08:00
parent e743f3b1d8
commit 176738d674
3 changed files with 26 additions and 19 deletions

View file

@ -2680,8 +2680,8 @@ pub fn activate_workspace_for_project(
None
}
pub fn last_opened_workspace_paths() -> Option<WorkspaceLocation> {
DB.last_workspace().log_err().flatten()
pub async fn last_opened_workspace_paths() -> Option<WorkspaceLocation> {
DB.last_workspace().await.log_err().flatten()
}
#[allow(clippy::type_complexity)]