ZIm/crates/project/src
Thorsten Ball 2dffc5f6e1
Fix case-only renaming of files in project panel (#7835)
This is a follow-up to #7768 but now also fixes #5211.

Explanation is relatively simple: case-only renames previously failed
because while Zed would think that `foobar` and `FOOBAR` are different,
the filesystem would give us an file-already-exists error when renaming.

So what we're doing here is to check whether we're on a case-insensitive
filesystem and if so, we overwrite the old file.

Release Notes:

- Fixed case-only renaming of files in project panel.
([#5211](https://github.com/zed-industries/zed/issues/5211)).

Proof:



https://github.com/zed-industries/zed/assets/1185253/57d5063f-09d9-47b1-a2df-3d7edefca97d
2024-02-15 19:07:10 +01:00
..
debounced_delay.rs Add debounce for re-querying completion documentation 2024-01-31 09:50:26 -05:00
ignore.rs Port new workspace logic to gpui2, uncomment most of the workspace2 tests 2023-11-17 22:54:19 +02:00
lsp_command.rs text: Wrap BufferId into a newtype 2024-01-29 20:00:47 +01:00
lsp_ext_command.rs text: Wrap BufferId into a newtype 2024-01-29 20:00:47 +01:00
prettier_support.rs Clean up LSP servers on worktree release 2024-01-23 11:34:51 +02:00
project.rs Add Clojure language support with tree-sitter and LSP (#6988) 2024-02-10 13:28:48 -08:00
project_settings.rs WIP: Add a setting to visually redact enviroment variables (#7124) 2024-01-31 11:42:09 -08:00
project_tests.rs Cleanup logic for registering languages and grammars (#7593) 2024-02-08 16:24:49 -05:00
search.rs Add project search in gitignored test 2023-12-05 12:45:44 +02:00
terminals.rs Add double quote wrap in activate_python_virtual_environment (#7787) 2024-02-14 12:42:06 -08:00
worktree.rs Fix case-only renaming of files in project panel (#7835) 2024-02-15 19:07:10 +01:00
worktree_tests.rs Fix case-only renaming of files (#7768) 2024-02-14 16:00:31 +01:00