Clip Clop
This commit is contained in:
parent
fd0ffb737f
commit
b06fe288f3
2 changed files with 4 additions and 9 deletions
|
@ -18,7 +18,7 @@ use language::{Buffer, BufferSnapshot};
|
||||||
use parking_lot::Mutex;
|
use parking_lot::Mutex;
|
||||||
use project::{CompletionIntent, Project};
|
use project::{CompletionIntent, Project};
|
||||||
use settings::Settings;
|
use settings::Settings;
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::Path;
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
use std::{cell::RefCell, sync::Arc};
|
use std::{cell::RefCell, sync::Arc};
|
||||||
use theme::ThemeSettings;
|
use theme::ThemeSettings;
|
||||||
|
@ -345,7 +345,6 @@ impl MessageEditor {
|
||||||
let mut mentions = Vec::new();
|
let mut mentions = Vec::new();
|
||||||
|
|
||||||
for chunk in message {
|
for chunk in message {
|
||||||
dbg!(&chunk);
|
|
||||||
match chunk {
|
match chunk {
|
||||||
acp::ContentBlock::Text(text_content) => {
|
acp::ContentBlock::Text(text_content) => {
|
||||||
text.push_str(&text_content.text);
|
text.push_str(&text_content.text);
|
||||||
|
@ -382,7 +381,6 @@ impl MessageEditor {
|
||||||
| acp::ContentBlock::ResourceLink(_) => {}
|
| acp::ContentBlock::ResourceLink(_) => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dbg!(&mentions);
|
|
||||||
|
|
||||||
let snapshot = message_editor.update(cx, |editor, cx| {
|
let snapshot = message_editor.update(cx, |editor, cx| {
|
||||||
editor.set_text(text, window, cx);
|
editor.set_text(text, window, cx);
|
||||||
|
@ -672,7 +670,9 @@ mod tests {
|
||||||
});
|
});
|
||||||
|
|
||||||
let content = message_editor
|
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
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
|
|
@ -45,11 +45,6 @@ impl<T> MessageHistory<T> {
|
||||||
None
|
None
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
pub fn items(&self) -> &[T] {
|
|
||||||
&self.items
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue