terminal: Handle spaces in cwds of remote terminals (#34844)

Closes #34807

Release Notes:

- Fixed "Open in terminal" action not working with paths that contain
spaces in SSH projects.
This commit is contained in:
Piotr Osiewicz 2025-07-21 20:51:27 +02:00 committed by GitHub
parent 3e50d997dd
commit 6ea09beea8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -662,7 +662,7 @@ pub fn wrap_for_ssh(
format!("cd \"$HOME/{trimmed_path}\"; {env_changes} {to_run}")
} else {
format!("cd {path}; {env_changes} {to_run}")
format!("cd \"{path}\"; {env_changes} {to_run}")
}
} else {
format!("cd; {env_changes} {to_run}")