ZIm/crates/project/src
smit 387ee46c46
project: Fix issue where Cmd+Click on an import opens the wrong file (#26120)
Closes #21974

`resolve_path_in_worktrees` function looks for provided path in each
worktree until valid file is found.

In this PR we priortize current buffer worktree before other worktrees,
because of edge case where, file with same name might exists in other
worktrees.

Updated tests to handle this case.

Release Notes:

- Fixed an issue where the wrong file from a different worktree would
open when using `Cmd + Click` on a file import.
2025-03-05 16:49:39 +05:30
..
lsp_command Remove language::markdown (#25136) 2025-02-19 08:55:36 -07:00
project_tree cx.background_executor().spawn(...) -> cx.background_spawn(...) (#25103) 2025-02-18 20:30:33 +00:00
buffer_store.rs Git fix repo selection (#25996) 2025-03-03 21:40:20 -07:00
color_extractor.rs Simplify static expression to a constant (#23193) 2025-01-15 19:31:21 +00:00
connection_manager.rs Remove more references to 'model' in GPUI APIs (#23693) 2025-01-27 04:00:27 +00:00
debounced_delay.rs Rename model based variable names to entity (#24198) 2025-02-04 10:24:35 -08:00
direnv.rs Environment loading fixes (#19144) 2024-10-16 12:14:40 +02:00
environment.rs Improve support for tcsh/csh as login shells (#25122) 2025-02-19 15:31:42 -05:00
git.rs Disable Git panel button to open commit editor in certain cases (#26000) 2025-03-04 05:35:18 +00:00
image_store.rs cx.background_executor().spawn(...) -> cx.background_spawn(...) (#25103) 2025-02-18 20:30:33 +00:00
lsp_command.rs Remove language::markdown (#25136) 2025-02-19 08:55:36 -07:00
lsp_ext_command.rs Fix missed renames in #22632 (#23688) 2025-01-26 23:37:34 +00:00
lsp_store.rs lsp: Do not add trailing slash to workspace folders (#25903) 2025-03-02 22:09:13 +00:00
prettier_store.rs cx.background_executor().spawn(...) -> cx.background_spawn(...) (#25103) 2025-02-18 20:30:33 +00:00
project.rs project: Fix issue where Cmd+Click on an import opens the wrong file (#26120) 2025-03-05 16:49:39 +05:30
project_settings.rs git: Add hunk_style setting (#26038) 2025-03-04 11:10:39 -05:00
project_tests.rs Optimistically update hunk states when staging and unstaging hunks (#25687) 2025-02-28 20:55:29 +00:00
project_tree.rs cx.background_executor().spawn(...) -> cx.background_spawn(...) (#25103) 2025-02-18 20:30:33 +00:00
search.rs Revert "Use multi-line regex for '\s'" (#25926) 2025-03-03 10:32:49 -05:00
search_history.rs project search: Persist search history across session (#9932) 2024-04-02 11:13:18 +02:00
task_inventory.rs Use active worktree's task sources (#25784) 2025-02-27 22:57:59 +00:00
task_store.rs Rename model based variable names to entity (#24198) 2025-02-04 10:24:35 -08:00
terminals.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
toolchain_store.rs cx.background_executor().spawn(...) -> cx.background_spawn(...) (#25103) 2025-02-18 20:30:33 +00:00
worktree_store.rs Fix some syncing issues with git statuses (#25535) 2025-02-25 22:09:02 -07:00
yarn.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00