Fix ci error – Copy to clipboard isn't implemented in tests

Nate Butler and Marshall Bowers created

Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>

Change summary

crates/editor2/src/editor.rs | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

Detailed changes

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)),
                     )
             }))