assistant2: Remove unneeded debug logging (#27030)
This PR removes the debug logging added in https://github.com/zed-industries/zed/pull/23722, as we no longer need it. Release Notes: - N/A
This commit is contained in:
parent
a2ae6a1c77
commit
e9033a75ac
2 changed files with 0 additions and 8 deletions
|
@ -112,15 +112,12 @@ impl AssistantPanel {
|
|||
) -> Task<Result<Entity<Self>>> {
|
||||
cx.spawn(|mut cx| async move {
|
||||
let tools = Arc::new(ToolWorkingSet::default());
|
||||
log::info!("[assistant2-debug] initializing ThreadStore");
|
||||
let thread_store = workspace.update(&mut cx, |workspace, cx| {
|
||||
let project = workspace.project().clone();
|
||||
ThreadStore::new(project, tools.clone(), prompt_builder.clone(), cx)
|
||||
})??;
|
||||
log::info!("[assistant2-debug] finished initializing ThreadStore");
|
||||
|
||||
let slash_commands = Arc::new(SlashCommandWorkingSet::default());
|
||||
log::info!("[assistant2-debug] initializing ContextStore");
|
||||
let context_store = workspace
|
||||
.update(&mut cx, |workspace, cx| {
|
||||
let project = workspace.project().clone();
|
||||
|
@ -132,7 +129,6 @@ impl AssistantPanel {
|
|||
)
|
||||
})?
|
||||
.await?;
|
||||
log::info!("[assistant2-debug] finished initializing ContextStore");
|
||||
|
||||
workspace.update_in(&mut cx, |workspace, window, cx| {
|
||||
cx.new(|cx| Self::new(workspace, thread_store, context_store, window, cx))
|
||||
|
@ -147,7 +143,6 @@ impl AssistantPanel {
|
|||
window: &mut Window,
|
||||
cx: &mut Context<Self>,
|
||||
) -> Self {
|
||||
log::info!("[assistant2-debug] AssistantPanel::new");
|
||||
let thread = thread_store.update(cx, |this, cx| this.create_thread(cx));
|
||||
let fs = workspace.app_state().fs.clone();
|
||||
let project = workspace.project().clone();
|
||||
|
|
|
@ -460,14 +460,12 @@ fn initialize_panels(
|
|||
};
|
||||
|
||||
let (assistant_panel, assistant2_panel) = if is_assistant2_enabled {
|
||||
log::info!("[assistant2-debug] initializing Assistant2");
|
||||
let assistant2_panel = assistant2::AssistantPanel::load(
|
||||
workspace_handle.clone(),
|
||||
prompt_builder,
|
||||
cx.clone(),
|
||||
)
|
||||
.await?;
|
||||
log::info!("[assistant2-debug] finished initializing Assistant2");
|
||||
|
||||
(None, Some(assistant2_panel))
|
||||
} else {
|
||||
|
@ -483,7 +481,6 @@ fn initialize_panels(
|
|||
|
||||
workspace_handle.update_in(&mut cx, |workspace, window, cx| {
|
||||
if let Some(assistant2_panel) = assistant2_panel {
|
||||
log::info!("[assistant2-debug] adding Assistant2 panel");
|
||||
workspace.add_panel(assistant2_panel, window, cx);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue