Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
remove release channel flags in semantic_index
KCaverlyfc8dd8433cc1
diff --git a/crates/semantic_index/src/semantic_index.rs b/crates/semantic_index/src/semantic_index.rsindex f9ac6a0ae19..e06bfce48b6 100644--- a/crates/semantic_index/src/semantic_index.rs+++ b/crates/semantic_index/src/semantic_index.rs@@ -32,7 +32,7 @@ use std::{time::{Duration, Instant, SystemTime},};use util::{- channel::{ReleaseChannel, RELEASE_CHANNEL, RELEASE_CHANNEL_NAME},+ channel::{RELEASE_CHANNEL_NAME},http::HttpClient,paths::EMBEDDINGS_DIR,ResultExt,@@ -55,11 +55,6 @@ pub fn init(.join(Path::new(RELEASE_CHANNEL_NAME.as_str())).join("embeddings_db");- // This needs to be removed at some point before stable.- if *RELEASE_CHANNEL == ReleaseChannel::Stable {- return;- }-cx.subscribe_global::<WorkspaceCreated, _>({move |event, cx| {let Some(semantic_index) = SemanticIndex::global(cx) else {@@ -282,7 +277,6 @@ impl SemanticIndex {pub fn enabled(cx: &AppContext) -> bool {settings::get::<SemanticIndexSettings>(cx).enabled- && *RELEASE_CHANNEL != ReleaseChannel::Stable}pub fn status(&self, project: &ModelHandle<Project>) -> SemanticIndexStatus {