zed/crates/util/src
hagz0r d1a323b4ac
Fix parsing of filenames like main (1).log (#50770)
## Summary
Fixes Windows file-open parsing for names like `main (1).log`.

`PathWithPosition::parse_str` could treat `(1)` in a normal filename as
a position suffix and drop the extension/path tail. The regex is now
anchored so parenthesized row/column parsing only applies at the end of
the filename (with optional trailing `:` and optional range suffix).

## Testing
- `cargo test -p util path_with_position_parse_`

Closes #50597

Release Notes:

- Fixed opening files with names like `main (1).log` on Windows.
2026-03-10 06:57:43 +00:00
..
command util: Always use posix_spawn on macOS even with pre_exec hooks (#49090) 2026-02-13 20:16:11 +01:00
test GPUI on the web (#50228) 2026-02-26 18:36:50 +01:00
archive.rs GPUI on the web (#50228) 2026-02-26 18:36:50 +01:00
command.rs util: Always use posix_spawn on macOS even with pre_exec hooks (#49090) 2026-02-13 20:16:11 +01:00
fs.rs
markdown.rs
path_list.rs Implement new Multi Agent UI (#50534) 2026-03-05 20:22:28 +00:00
paths.rs Fix parsing of filenames like main (1).log (#50770) 2026-03-10 06:57:43 +00:00
process.rs Redact environment variables from debugger errors (#50008) 2026-02-25 16:18:42 +01:00
redact.rs Redact environment variables from language server spawn errors (#44783) 2025-12-18 21:05:14 +02:00
rel_path.rs Avoid the cost of creating an anyhow error in RelPath::strip_prefix (#44444) 2025-12-09 00:01:46 +00:00
schemars.rs Allow trailing commas in builtin JSONC schemas (#43854) 2025-12-04 15:37:32 -05:00
serde.rs
shell.rs util: Fix env load issues on Windows due to quoting (#50782) 2026-03-05 08:33:44 +00:00
shell_builder.rs Revert "Allow always_allow patterns for Nushell, Elvish, and Rc shells" (#48050) 2026-01-30 21:26:13 +00:00
shell_env.rs util: Fix env load issues on Windows due to quoting (#50782) 2026-03-05 08:33:44 +00:00
size.rs
test.rs GPUI on the web (#50228) 2026-02-26 18:36:50 +01:00
time.rs agent: Add turn statistics to agent panel (#46390) 2026-01-09 00:33:38 +00:00
util.rs Add folder_paths for project grouping (#50249) 2026-02-26 22:32:48 +00:00