assistant2: Remove unnecessary Pane
(#21183)
This PR removes an unnecessary `Pane` that was copied over from `assistant::AssistantPanel` to `assistant2::AssistantPanel`. Release Notes: - N/A
This commit is contained in:
parent
9ee1aba80a
commit
e7b0047562
2 changed files with 10 additions and 33 deletions
|
@ -1,5 +1,5 @@
|
|||
use editor::{Editor, EditorElement, EditorStyle};
|
||||
use gpui::{AppContext, Model, TextStyle, View};
|
||||
use gpui::{AppContext, FocusableView, Model, TextStyle, View};
|
||||
use language_model::{
|
||||
LanguageModelRegistry, LanguageModelRequest, LanguageModelRequestMessage, MessageContent, Role,
|
||||
};
|
||||
|
@ -97,6 +97,12 @@ impl MessageEditor {
|
|||
}
|
||||
}
|
||||
|
||||
impl FocusableView for MessageEditor {
|
||||
fn focus_handle(&self, cx: &AppContext) -> gpui::FocusHandle {
|
||||
self.editor.focus_handle(cx)
|
||||
}
|
||||
}
|
||||
|
||||
impl Render for MessageEditor {
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
||||
let font_size = TextSize::Default.rems(cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue