ssh remoting: Restore SSH projects when reopening Zed (#19188)
Release Notes: - N/A --------- Co-authored-by: Bennet <bennet@zed.dev>
This commit is contained in:
parent
71a878aa39
commit
6ec00cdb06
5 changed files with 248 additions and 70 deletions
|
@ -5046,14 +5046,14 @@ pub fn activate_workspace_for_project(
|
|||
None
|
||||
}
|
||||
|
||||
pub async fn last_opened_workspace_paths() -> Option<LocalPaths> {
|
||||
pub async fn last_opened_workspace_location() -> Option<SerializedWorkspaceLocation> {
|
||||
DB.last_workspace().await.log_err().flatten()
|
||||
}
|
||||
|
||||
pub fn last_session_workspace_locations(
|
||||
last_session_id: &str,
|
||||
last_session_window_stack: Option<Vec<WindowId>>,
|
||||
) -> Option<Vec<LocalPaths>> {
|
||||
) -> Option<Vec<SerializedWorkspaceLocation>> {
|
||||
DB.last_session_workspace_locations(last_session_id, last_session_window_stack)
|
||||
.log_err()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue