Make prompt library icon in context panel staff-only for now (#12457)
This is still pretty raw, so I'd like to hold off on shipping it to all users. Release Notes: - Hide the prompt library for non-staff until it is in a more complete state.
This commit is contained in:
parent
abec028e58
commit
b8d9713b4f
5 changed files with 56 additions and 34 deletions
|
@ -14,6 +14,12 @@ impl FeatureFlags {
|
|||
|
||||
impl Global for FeatureFlags {}
|
||||
|
||||
/// To create a feature flag, implement this trait on a trivial type and use it as
|
||||
/// a generic parameter when called [`FeatureFlagAppExt::has_flag`].
|
||||
///
|
||||
/// Feature flags are always enabled for members of Zed staff. To disable this behavior
|
||||
/// so you can test flags being disabled, set ZED_DISABLE_STAFF=1 in your environment,
|
||||
/// which will force Zed to treat the current user as non-staff.
|
||||
pub trait FeatureFlag {
|
||||
const NAME: &'static str;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue