Support diagnostic navigation in multibuffers (#22620)
cc @nathansobo Release Notes: - Support diagnostic navigation in multibuffers
This commit is contained in:
parent
39af06085a
commit
11ec25aedb
13 changed files with 209 additions and 150 deletions
|
@ -3047,6 +3047,12 @@ pub trait FromAnchor {
|
|||
fn from_anchor(anchor: &Anchor, snapshot: &BufferSnapshot) -> Self;
|
||||
}
|
||||
|
||||
impl FromAnchor for Anchor {
|
||||
fn from_anchor(anchor: &Anchor, _snapshot: &BufferSnapshot) -> Self {
|
||||
*anchor
|
||||
}
|
||||
}
|
||||
|
||||
impl FromAnchor for Point {
|
||||
fn from_anchor(anchor: &Anchor, snapshot: &BufferSnapshot) -> Self {
|
||||
snapshot.summary_for_anchor(anchor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue