Repository navigation
Commit 3f993c9
committed
fix: quote args in launchDetached on Windows to support paths with spaces
On Windows, `launchDetached` uses `shell: true` so that editor commands
are resolved via PATH. However, when the shell parses the concatenated
command string, spaces in file paths are treated as argument separators.
This causes "Open in Editor" to open one tab per word in the path
instead of opening the project folder.
Wrap each argument in double quotes on Windows before passing to
`spawn()` so the shell keeps paths intact.
Fixes #18041 parent afc3924 commit 3f993c9
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
301 | 306 | | |
302 | 307 | | |
303 | 308 | | |
| |||
0 commit comments