cli: Allow opening non-existent paths (#43250)

Changes are made to `parse_path_with_position`:
we try to get the canonical, existing parts of
a path, then append the non-existing parts.

Closes #4441

Release Notes:

- Added the possibility to open a non-existing path using `zed` CLI
  ```
  zed path/to/non/existing/file.txt
  ```

Co-authored-by: Syed Sadiq Ali <sadiqonemail@gmail.com>
This commit is contained in:
Ulysse Buonomo
2025-11-24 11:30:19 +02:00
committed by GitHub
co-authored by Syed Sadiq Ali
parent 06f8e35597
commit 48e113a90e
5 changed files with 185 additions and 24 deletions
Generated
+1
View File
@@ -3086,6 +3086,7 @@ dependencies = [
"rayon",
"release_channel",
"serde",
"serde_json",
"tempfile",
"util",
"windows 0.61.3",