workspace: Fix SSH remote restore on second open + Fix panel not opening automatically on new SSH remote (#27830)

Closes #26902

- We used to serialize SSH remote only when opened via recent entries,
and not on first time. This broke restore, when opening same folder for
second time from recent entries. Once opened for second time, restoring
used to. work correctly. This PR fixes this by serializing when opened
for first time.

- We didn't handle window replace post worktree creation in first time
flow, this resulted in project panel not opening automatically like it
does with recent entries, or local projects. This PR fixes it by
following same flow as recent entries.

Release Notes:

- Fixed SSH remote not restoring when opening for second time.
- Fixed project panel not opening when opening new SSH remote folder.
This commit is contained in:
Smit Barmase 2025-04-01 14:05:28 +05:30 committed by GitHub
parent 5343f1cdaf
commit 8be5ed22f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 137 additions and 94 deletions

View file

@ -599,7 +599,7 @@ pub async fn open_ssh_project(
let did_open_ssh_project = cx
.update(|cx| {
workspace::open_ssh_project(
workspace::open_ssh_project_with_new_connection(
window,
connection_options.clone(),
cancel_rx,