diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rs index 5cff09de0f70f8..c9f922c5aa6315 100644 --- a/crates/zed/src/zed.rs +++ b/crates/zed/src/zed.rs @@ -20,6 +20,7 @@ use command_palette_hooks::CommandPaletteFilter; use editor::ProposedChangesEditorToolbar; use editor::{scroll::Autoscroll, Editor, MultiBuffer}; use feature_flags::FeatureFlagAppExt; +use futures::FutureExt; use futures::{channel::mpsc, select_biased, StreamExt}; use gpui::{ actions, point, px, AppContext, AsyncAppContext, Context, FocusableView, MenuItem, @@ -349,7 +350,16 @@ fn initialize_panels(prompt_builder: Arc, cx: &mut ViewContext is_git_ui_enabled, + _ = timeout => false, + } + }; let git_panel = if git_ui_enabled { Some(git_ui::git_panel::GitPanel::load(workspace_handle.clone(), cx.clone()).await?) } else { @@ -364,7 +374,14 @@ fn initialize_panels(prompt_builder: Arc, cx: &mut ViewContext is_assistant2_enabled, + _ = timeout => false, + } }; let assistant2_panel = if is_assistant2_enabled { Some(assistant2::AssistantPanel::load(workspace_handle.clone(), cx.clone()).await?)