Clip Clop

This commit is contained in:
Conrad Irwin 2025-08-13 13:05:28 -06:00
parent fd0ffb737f
commit b06fe288f3
2 changed files with 4 additions and 9 deletions

View file

@ -18,7 +18,7 @@ use language::{Buffer, BufferSnapshot};
use parking_lot::Mutex;
use project::{CompletionIntent, Project};
use settings::Settings;
use std::path::{Path, PathBuf};
use std::path::Path;
use std::rc::Rc;
use std::{cell::RefCell, sync::Arc};
use theme::ThemeSettings;
@ -345,7 +345,6 @@ impl MessageEditor {
let mut mentions = Vec::new();
for chunk in message {
dbg!(&chunk);
match chunk {
acp::ContentBlock::Text(text_content) => {
text.push_str(&text_content.text);
@ -382,7 +381,6 @@ impl MessageEditor {
| acp::ContentBlock::ResourceLink(_) => {}
}
}
dbg!(&mentions);
let snapshot = message_editor.update(cx, |editor, cx| {
editor.set_text(text, window, cx);
@ -672,7 +670,9 @@ mod tests {
});
let content = message_editor
.update_in(cx, |message_editor, window, cx| message_editor.contents(cx))
.update_in(cx, |message_editor, _window, cx| {
message_editor.contents(cx)
})
.await
.unwrap();

View file

@ -45,11 +45,6 @@ impl<T> MessageHistory<T> {
None
})
}
#[cfg(test)]
pub fn items(&self) -> &[T] {
&self.items
}
}
#[cfg(test)]
mod tests {