Introduce an optional primary field to ExcerptRange

This commit is contained in:
Antonio Scandurra 2022-06-08 12:23:12 +02:00
parent ffb75b0f02
commit 15b13fe511
4 changed files with 66 additions and 8 deletions

View file

@ -351,6 +351,7 @@ impl ProjectDiagnosticsEditor {
buffer.clone(),
[ExcerptRange {
context: excerpt_start..excerpt_end,
primary: Some(range.clone()),
}],
excerpts_cx,
)