Make modal behavior stateless

Co-authored-by: antonio <antonio@zed.dev>
This commit is contained in:
Mikayla Maki 2023-03-29 12:45:53 -07:00
parent d60ef03d66
commit f812796283
2 changed files with 318 additions and 233 deletions

View file

@ -226,6 +226,7 @@ impl Copilot {
if let CopilotServer::Started { server, status } = &mut self.server {
let task = match status {
SignInStatus::Authorized { .. } | SignInStatus::Unauthorized { .. } => {
cx.notify();
Task::ready(Ok(())).shared()
}
SignInStatus::SigningIn { task, .. } => {