Make modal behavior stateless
Co-authored-by: antonio <antonio@zed.dev>
This commit is contained in:
parent
d60ef03d66
commit
f812796283
2 changed files with 318 additions and 233 deletions
|
@ -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, .. } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue