Skip to content

armgit / zed

Public Imported from GitHub
0

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.lock
index 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.toml
index 31ec5ec0da8..8b1d9b18d64 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 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);