Show current plan in user menu (#15513)
This PR updates the user menu to show the user's current plan. Also adds a new RPC message to send this information down to the client when Zed starts. This is behind a feature flag. Release Notes: - N/A --------- Co-authored-by: Max <max@zed.dev>
This commit is contained in:
parent
161c6ca6a4
commit
a7ffc2b6f3
10 changed files with 95 additions and 11 deletions
|
@ -48,6 +48,11 @@ impl FeatureFlag for GroupedDiagnostics {
|
|||
const NAME: &'static str = "grouped-diagnostics";
|
||||
}
|
||||
|
||||
pub struct ZedPro {}
|
||||
impl FeatureFlag for ZedPro {
|
||||
const NAME: &'static str = "zed-pro";
|
||||
}
|
||||
|
||||
pub trait FeatureFlagViewExt<V: 'static> {
|
||||
fn observe_flag<T: FeatureFlag, F>(&mut self, callback: F) -> Subscription
|
||||
where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue