diff --git a/Cargo.lock b/Cargo.lock index 0b58f151b5..2a8077b622 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6566,6 +6566,7 @@ dependencies = [ "fs", "gpui", "inventory", + "release_channel", "schemars 1.0.4", "serde_json", "settings", diff --git a/crates/feature_flags/Cargo.toml b/crates/feature_flags/Cargo.toml index 31ec5ec0da..8b1d9b18d6 100644 --- a/crates/feature_flags/Cargo.toml +++ b/crates/feature_flags/Cargo.toml @@ -17,6 +17,7 @@ feature_flags_macros.workspace = true fs.workspace = true gpui.workspace = true inventory.workspace = true +release_channel.workspace = true schemars.workspace = true serde_json.workspace = true settings.workspace = true diff --git a/crates/feature_flags/src/flags.rs b/crates/feature_flags/src/flags.rs index de6f03f1c6..8486c32d26 100644 --- a/crates/feature_flags/src/flags.rs +++ b/crates/feature_flags/src/flags.rs @@ -87,6 +87,13 @@ impl FeatureFlag for ProjectPanelUndoRedoFeatureFlag { fn enabled_for_staff() -> bool { true } + + fn enabled_for_all() -> bool { + !matches!( + *release_channel::RELEASE_CHANNEL, + release_channel::ReleaseChannel::Stable + ) + } } register_feature_flag!(ProjectPanelUndoRedoFeatureFlag);