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:
Marshall Bowers 2024-11-25 16:28:38 -05:00 committed by GitHub
parent 9ee1aba80a
commit e7b0047562
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 33 deletions

View file

@ -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);