ZIm/crates/project/src
Thorsten Ball 2b8b913b6b
Use correct worktree when getting permalink to line (#8888)
Previously this code would call `project.visible_worktrees(cx).next`
which might not necessarily return the worktree matching the currently
open file.

What this change does is it adds `get_repo` method on `Project` that
allows us to get the `GitRepository` for the current buffer.

Release Notes:

- Fixed `open permalink to line` not working when multiple folders are
added to the project.

Co-authored-by: Mikayla <mikayla@zed.dev>
2024-03-05 16:59:00 +01:00
..
debounced_delay.rs Add debounce for re-querying completion documentation 2024-01-31 09:50:26 -05:00
lsp_command.rs Enable clippy::clone_on_copy (#8728) 2024-03-02 17:37:48 -05:00
lsp_ext_command.rs text: Wrap BufferId into a newtype 2024-01-29 20:00:47 +01:00
prettier_support.rs Add initial support for defining language server adapters in WebAssembly-based extensions (#8645) 2024-03-01 16:00:55 -08:00
project.rs Use correct worktree when getting permalink to line (#8888) 2024-03-05 16:59:00 +01:00
project_tests.rs Add initial support for defining language server adapters in WebAssembly-based extensions (#8645) 2024-03-01 16:00:55 -08:00
search.rs Add project search in gitignored test 2023-12-05 12:45:44 +02:00
task_inventory.rs task: Add task contexts (#8675) 2024-03-04 21:04:53 +01:00
terminals.rs Rename runnables into tasks (#8119) 2024-02-21 14:56:43 +02:00