Skip to content

Commit

Permalink
Enable Assistant2 outside of development builds (#22294)
Browse files Browse the repository at this point in the history
This PR removes the gate that limited Assistant2 to development builds,
so that we can start testing it out in Nightly.

Note that currently this still requires explicit opt-in to the
`assistant2` feature flag.

Release Notes:

- N/A
  • Loading branch information
maxdeviant authored Dec 20, 2024
1 parent cbd2e81 commit 8a858fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/zed/src/zed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>();

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8a858fe

Please sign in to comment.