zed/crates/util/src
Luis 27ab898e65
project_panel: Fix mixed sort with incorrect ordering when same file and dir name (#47863)
Closes #47678

When using mixed sort mode in the project panel, a folder and file with
the same name but different case (e.g., `hello` folder and `Hello.txt`
file) would sort incorrectly. The file could appear between an expanded
folder and its contents.

The issue was in `compare_rel_paths_mixed`: the tie-breaker logic used
case-sensitive comparison (`a == b`) to decide directory-before-file
ordering, but `natural_sort_no_tiebreak` already considers entries equal
case-insensitively. Changed to use `eq_ignore_ascii_case` to match.

Release Notes:

- Fixed project panel mixed sort mode ordering incorrectly when a file
and folder share the same name with different casing.
2026-02-16 19:08:13 +05:30
..
command util: Always use posix_spawn on macOS even with pre_exec hooks (#49090) 2026-02-13 20:16:11 +01:00
test Update Editor::select_larger_syntax_node (#36971) 2025-09-09 12:13:20 -06:00
arc_cow.rs
archive.rs Canonicalize extension paths (#48632) 2026-02-10 10:38:47 -08: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
paths.rs project_panel: Fix mixed sort with incorrect ordering when same file and dir name (#47863) 2026-02-16 19:08:13 +05:30
process.rs agent_servers: Fix process leaks after terminating ACP server (#45902) 2025-12-31 11:59:50 +00: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 Housekeeping: Improve error handling and small fixes (#48552) 2026-02-05 22:58:55 -05: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: Always use posix_spawn on macOS even with pre_exec hooks (#49090) 2026-02-13 20:16:11 +01:00
size.rs
test.rs
time.rs agent: Add turn statistics to agent panel (#46390) 2026-01-09 00:33:38 +00:00
util.rs util: Always use posix_spawn on macOS even with pre_exec hooks (#49090) 2026-02-13 20:16:11 +01:00