History

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)).

Kevin Wang committed 2 years ago

Commit 862f5a01 parent 7d301751 file · +4 −0Browse files

Unified · Split

crates/supermaven/src/supermaven.rs+4−0
@@ -354,7 +354,11 @@ impl SupermavenAgent { · 353 unmodified lines
354354 None => AccountStatus::Ready,
355355 };
356356 }
357+ SupermavenMessage::ActivationSuccess => {
358+ self.account_status = AccountStatus::Ready;
359+ }
357360 SupermavenMessage::ServiceTier { service_tier } => {
361+ self.account_status = AccountStatus::Ready;
358362 self.service_tier = Some(service_tier);
359363 }
360364 SupermavenMessage::Response(response) => {