Fix formatting
This commit is contained in:
parent
6b6e4e3bfe
commit
1c69e289b7
1 changed files with 30 additions and 25 deletions
|
@ -84,7 +84,7 @@ use std::{
|
||||||
};
|
};
|
||||||
pub use sum_tree::Bias;
|
pub use sum_tree::Bias;
|
||||||
use theme::{DiagnosticStyle, Theme};
|
use theme::{DiagnosticStyle, Theme};
|
||||||
use util::{post_inc, ResultExt, TryFutureExt, RangeExt};
|
use util::{post_inc, RangeExt, ResultExt, TryFutureExt};
|
||||||
use workspace::{ItemNavHistory, ViewId, Workspace, WorkspaceId};
|
use workspace::{ItemNavHistory, ViewId, Workspace, WorkspaceId};
|
||||||
|
|
||||||
use crate::git::diff_hunk_to_display;
|
use crate::git::diff_hunk_to_display;
|
||||||
|
@ -5146,7 +5146,9 @@ impl Editor {
|
||||||
|
|
||||||
let project = workspace.project().clone();
|
let project = workspace.project().clone();
|
||||||
let references = project.update(cx, |project, cx| project.references(&buffer, head, cx));
|
let references = project.update(cx, |project, cx| project.references(&buffer, head, cx));
|
||||||
Some(cx.spawn_labeled("Finding All References...", |workspace, mut cx| async move {
|
Some(cx.spawn_labeled(
|
||||||
|
"Finding All References...",
|
||||||
|
|workspace, mut cx| async move {
|
||||||
let locations = references.await?;
|
let locations = references.await?;
|
||||||
if locations.is_empty() {
|
if locations.is_empty() {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
|
@ -5166,11 +5168,14 @@ impl Editor {
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.unwrap();
|
.unwrap();
|
||||||
Self::open_locations_in_multibuffer(workspace, locations, replica_id, title, cx);
|
Self::open_locations_in_multibuffer(
|
||||||
|
workspace, locations, replica_id, title, cx,
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}))
|
},
|
||||||
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Opens a multibuffer with the given project locations in it
|
/// Opens a multibuffer with the given project locations in it
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue