ZIm/crates/project_core
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
..
src Use correct worktree when getting permalink to line (#8888) 2024-03-05 16:59:00 +01:00
Cargo.toml Extract project_core out of project (#8438) 2024-02-26 22:09:22 +01:00
LICENSE-GPL Extract project_core out of project (#8438) 2024-02-26 22:09:22 +01:00