Handle supermaven account status messages (#14749)

Sets the account status state to allow the Supermaven button to move out
of the "Supermaven is initializing..." state. We also need to add the
ability to sign out and change tiers but I will do that in a separate
PR.

Release Notes:

- Improved Supermaven status messages
([#12715](https://github.com/zed-industries/zed/issues/12715)).
This commit is contained in:
Kevin Wang 2024-07-18 14:22:30 -04:00 committed by GitHub
parent 7d30175527
commit 862f5a0561
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -354,7 +354,11 @@ impl SupermavenAgent {
None => AccountStatus::Ready,
};
}
SupermavenMessage::ActivationSuccess => {
self.account_status = AccountStatus::Ready;
}
SupermavenMessage::ServiceTier { service_tier } => {
self.account_status = AccountStatus::Ready;
self.service_tier = Some(service_tier);
}
SupermavenMessage::Response(response) => {