ZIm/crates/task
Silvano Cerza 06edcd18be
Fix running Python commands that include paths with spaces (#21981)
This PR fixes running Python commands that include paths with spaces by
wrapping python commands and their arguments in quotation marks.

I fixed this only in Python as I noticed this while trying to run
`pytest` in Zed.

Probably this is not the best approach as it doesn't fix other languages
too, though I don't know enough about the codebase to fix it like that.
I'm not even sure if it's actually feasible right now.

I didn't add tests for this either as I couldn't really understand how
to easily to that, I tried to look at other languages but couldn't find
one that tests their `ContextProvider` directly.

Release Notes:

- Fix running Python commands that include paths with spaces

---------

Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
2024-12-13 22:31:08 +01:00
..
src Fix running Python commands that include paths with spaces (#21981) 2024-12-13 22:31:08 +01:00
test_data VS Code -> Zed tasks converter (#9538) 2024-03-20 16:37:26 +01:00
Cargo.toml Add support for detecting tests in source files, and implement it for Rust (#11195) 2024-05-05 16:32:48 +02:00
LICENSE-GPL Rename runnables into tasks (#8119) 2024-02-21 14:56:43 +02:00