Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
feature_flags: Enable project panel undo everywhere except stable (#61457)
Dinoa8b57a2529ab
diff --git a/Cargo.lock b/Cargo.lockindex 0b58f151b59..2a8077b622f 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.tomlindex 31ec5ec0da8..8b1d9b18d64 100644--- a/crates/feature_flags/Cargo.toml+++ b/crates/feature_flags/Cargo.toml@@ -17,6 +17,7 @@ feature_flags_macros.workspace = truefs.workspace = truegpui.workspace = trueinventory.workspace = true+release_channel.workspace = trueschemars.workspace = trueserde_json.workspace = truesettings.workspace = truediff --git a/crates/feature_flags/src/flags.rs b/crates/feature_flags/src/flags.rsindex de6f03f1c67..8486c32d269 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);