diff --git a/crates/editor2/src/editor.rs b/crates/editor2/src/editor.rs index 9498895e71..a4f19428fa 100644 --- a/crates/editor2/src/editor.rs +++ b/crates/editor2/src/editor.rs @@ -9695,7 +9695,8 @@ pub fn diagnostic_block_renderer(diagnostic: Diagnostic, is_valid: bool) -> Rend Arc::new(move |cx: &mut BlockContext| { let message = message.clone(); let copy_id: SharedString = format!("copy-{}", cx.block_id.clone()).to_string().into(); - let write_to_clipboard = cx.write_to_clipboard(ClipboardItem::new(message.clone())); + // TODO: `cx.write_to_clipboard` is not implemented in tests. + // let write_to_clipboard = cx.write_to_clipboard(ClipboardItem::new(message.clone())); // TODO: Nate: We should tint the background of the block with the severity color // We need to extend the theme before we can do this @@ -9718,7 +9719,8 @@ pub fn diagnostic_block_renderer(diagnostic: Diagnostic, is_valid: bool) -> Rend IconButton::new(copy_id.clone(), Icon::Copy) // .color(Color::Muted) .size(ButtonSize::Compact) - .on_click(cx.listener(move |_, _, cx| write_to_clipboard)) + // TODO: `cx.write_to_clipboard` is not implemented in tests. + // .on_click(cx.listener(move |_, _, cx| write_to_clipboard)) .tooltip(|cx| Tooltip::text("Copy diagnostic message", cx)), ) }))