Add copy-on-click to diagnostic messages

This commit is contained in:
Mikayla Maki 2023-06-20 16:48:30 -07:00
parent 6ed86781b2
commit 11125a62c7
No known key found for this signature in database
5 changed files with 49 additions and 20 deletions

View file

@ -1509,7 +1509,8 @@ mod tests {
let snapshot = editor.snapshot(cx);
snapshot
.blocks_in_range(0..snapshot.max_point().row())
.filter_map(|(row, block)| {
.enumerate()
.filter_map(|(ix, (row, block))| {
let name = match block {
TransformBlock::Custom(block) => block
.render(&mut BlockContext {
@ -1520,6 +1521,7 @@ mod tests {
gutter_width: 0.,
line_height: 0.,
em_width: 0.,
block_id: ix,
})
.name()?
.to_string(),