Start on an assistant panel based on multi-buffers

Each message is represented as a multibuffer excerpt to allow for
fluid editing of the conversation transcript.

Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
Nathan Sobo 2023-05-26 10:09:55 -06:00
parent 128c19875d
commit 80080a43e4
7 changed files with 381 additions and 34 deletions

View file

@ -2,6 +2,7 @@ pub mod languages;
pub mod menus;
#[cfg(any(test, feature = "test-support"))]
pub mod test;
use ai::AssistantPanel;
use anyhow::Context;
use assets::Assets;
use breadcrumbs::Breadcrumbs;
@ -357,7 +358,11 @@ pub fn initialize_workspace(
workspace.toggle_dock(project_panel_position, false, cx);
}
workspace.add_panel(terminal_panel, cx)
workspace.add_panel(terminal_panel, cx);
// TODO: deserialize state.
let assistant_panel = cx.add_view(|cx| AssistantPanel::new(workspace, cx));
workspace.add_panel(assistant_panel, cx);
})?;
Ok(())
})