Revert PR #6924 - go to reference when there's only one (#10094)

This PR reverts #6924, for the reasons stated in
https://github.com/zed-industries/zed/pull/6924#issuecomment-2033076300.

It also fixes an issue were the `find_all_references_task_sources`
wasn't cleaned up in all cases.

Release Notes:

- N/A

---------

Co-authored-by: Marshall <marshall@zed.dev>
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
Max Brunsfeld
2024-04-02 14:31:58 -07:00
committed by GitHub
co-authored by Marshall Marshall Bowers
parent 65cde17063
commit 7d5048e909
4 changed files with 26 additions and 325 deletions
+1
View File
@@ -367,6 +367,7 @@ impl<F: FnOnce()> Drop for Deferred<F> {
}
/// Run the given function when the returned value is dropped (unless it's cancelled).
#[must_use]
pub fn defer<F: FnOnce()>(f: F) -> Deferred<F> {
Deferred(Some(f))
}