Deduplicate path names in the project diagnostics view

This commit is contained in:
Max Brunsfeld
2022-01-12 10:51:08 -08:00
parent a9937ee8be
commit b5ee095da9
5 changed files with 120 additions and 88 deletions
+2 -1
View File
@@ -69,6 +69,7 @@ where
pub struct BlockContext<'a> {
pub cx: &'a AppContext,
pub anchor_x: f32,
pub line_number_x: f32,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord)]
@@ -939,7 +940,7 @@ mod tests {
start_row..start_row + block.height(),
block.column(),
block
.render(&BlockContext { cx, anchor_x: 0. })
.render(&BlockContext { cx, anchor_x: 0., line_number_x: 0., })
.name()
.unwrap()
.to_string(),