askpass: Use double quotes for script name in helper command (#43689)

Replace single quotes with double quotes when referencing the askpass
script name in the helper command. The Windows command processor
(cmd.exe) requires double quotes for proper string handling, as single
quotes are treated as literal characters.

Error I get when trying to open remote project:
<img width="396" height="390" alt="image"
src="https://github.com/user-attachments/assets/1538ee10-8efc-4f80-a867-b367908091b6"
/>

```
Zed Nightly 0.216.0 
23880c9c46
0.216.0+nightly.1965.23880c9c461e7c0073ba6118c6a98612518c58b9
```

Release Notes:

- N/A
This commit is contained in:
Maokaman1 authored and GitHub committed 2025-11-28 08:18:19 +01:00
1 parent b05718f48d
commit c8df5ed2da
1 file changed
+1 -1
+1 -1
View File
@@ -257,7 +257,7 @@ impl PasswordProxy {
// todo(shell): There might be no powershell on the system
#[cfg(target_os = "windows")]
let askpass_helper = format!(
"powershell.exe -ExecutionPolicy Bypass -File '{}'",
"powershell.exe -ExecutionPolicy Bypass -File \"{}\"",
askpass_script_path.display()
);