From fc8dd8433cc1073574abf65738071cd36c6555e9 Mon Sep 17 00:00:00 2001 From: KCaverly Date: Tue, 19 Sep 2023 12:20:59 -0400 Subject: [PATCH 1/2] remove release channel flags in semantic_index --- crates/semantic_index/src/semantic_index.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/crates/semantic_index/src/semantic_index.rs b/crates/semantic_index/src/semantic_index.rs index f9ac6a0ae19474258c2e56c9352329fc261ec234..e06bfce48b6145a449e3638a20a026ae0b386b8c 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::({ 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::(cx).enabled - && *RELEASE_CHANNEL != ReleaseChannel::Stable } pub fn status(&self, project: &ModelHandle) -> SemanticIndexStatus { From 4f1a59ebf56ecc70992a46faaf2a5e1f66fbf36f Mon Sep 17 00:00:00 2001 From: KCaverly Date: Tue, 19 Sep 2023 12:27:33 -0400 Subject: [PATCH 2/2] formatting --- crates/semantic_index/src/semantic_index.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/semantic_index/src/semantic_index.rs b/crates/semantic_index/src/semantic_index.rs index e06bfce48b6145a449e3638a20a026ae0b386b8c..bf15eae9743d4c6a9379993a1155ed451fc0274e 100644 --- a/crates/semantic_index/src/semantic_index.rs +++ b/crates/semantic_index/src/semantic_index.rs @@ -31,12 +31,7 @@ use std::{ sync::{Arc, Weak}, time::{Duration, Instant, SystemTime}, }; -use util::{ - channel::{RELEASE_CHANNEL_NAME}, - http::HttpClient, - paths::EMBEDDINGS_DIR, - ResultExt, -}; +use util::{channel::RELEASE_CHANNEL_NAME, http::HttpClient, paths::EMBEDDINGS_DIR, ResultExt}; use workspace::WorkspaceCreated; const SEMANTIC_INDEX_VERSION: usize = 11;