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 18:51:27 +00:00
committed by GitHub
parent 3e50d997dd
commit 6ea09beea8
+1 -1
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}")