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 authored and GitHub committed 2024-07-18 11:22:30 -07:00
1 parent 7d30175527
commit 862f5a0561
1 file changed
+4
+4
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) => {