util: Add missing quotes in shell env capturing on windows (#41902)

Release Notes:

- Fixed shell env capturing failing if zed is installed on a path with
whitespace in it
This commit is contained in:
Lukas Wirth
2025-11-04 14:31:20 +00:00
committed by GitHub
parent a262ca1cd5
commit 0ec31db398
+2 -2
View File
@@ -202,7 +202,7 @@ async fn capture_windows(
.args([
"-c",
&format!(
"cd '{}'; {}{} --printenv",
"cd '{}'; {}'{}' --printenv",
directory.display(),
shell_kind
.command_prefix()
@@ -231,7 +231,7 @@ async fn capture_windows(
.args([
"/c",
&format!(
"cd '{}'; {} --printenv",
"cd '{}'; '{}' --printenv",
directory.display(),
zed_path.display()
),