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:
Nathan Sobo 2024-05-29 16:53:45 -06:00 committed by GitHub
parent abec028e58
commit b8d9713b4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 56 additions and 34 deletions

View file

@ -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;
}