Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Only authenticate if the credentials provider has credentials when running in development (#25403)
Angelk90abc027558a74
diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rsindex b56aceafe1e..0f537cdee1a 100644--- a/crates/zed/src/main.rs+++ b/crates/zed/src/main.rs@@ -732,8 +732,8 @@ async fn authenticate(client: Arc<Client>, cx: &AsyncApp) -> Result<()> {if stdout_is_a_pty() {if client::IMPERSONATE_LOGIN.is_some() {client.authenticate_and_connect(false, cx).await?;- } else {- client.authenticate_and_connect(true, cx).await?+ } else if client.has_credentials(cx).await {+ client.authenticate_and_connect(true, cx).await?;}} else if client.has_credentials(cx).await {client.authenticate_and_connect(true, cx).await?;