Add copy-on-click to diagnostic messages
This commit is contained in:
parent
6ed86781b2
commit
11125a62c7
5 changed files with 49 additions and 20 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue