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 
c2281779af
0.216.0+nightly.1965.c2281779af56bd52c829ccd31aae4eb82b682ebc
```

Release Notes:

- N/A
This commit is contained in:
Maokaman1
2025-11-28 10:18:19 +03:00
committed by GitHub
parent 65e224c551
commit f856a3ca89

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()
);