Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Enable Assistant2 outside of development builds (#22294)

Marshall Bowers8a858fee7c77
diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rs
index 5cff09de0f7..284980bf50d 100644
--- a/crates/zed/src/zed.rs
+++ b/crates/zed/src/zed.rs
@@ -300,7 +300,6 @@ fn show_software_emulation_warning_if_needed(
}
fn initialize_panels(prompt_builder: Arc<PromptBuilder>, cx: &mut ViewContext<Workspace>) {
- let release_channel = ReleaseChannel::global(cx);
let assistant2_feature_flag = cx.wait_for_flag::<feature_flags::Assistant2FeatureFlag>();
let git_ui_feature_flag = cx.wait_for_flag::<feature_flags::GitUiFeatureFlag>();
@@ -361,7 +360,7 @@ fn initialize_panels(prompt_builder: Arc<PromptBuilder>, cx: &mut ViewContext<Wo
}
})?;
- let is_assistant2_enabled = if cfg!(test) || release_channel != ReleaseChannel::Dev {
+ let is_assistant2_enabled = if cfg!(test) {
false
} else {
assistant2_feature_flag.await