language_model_selector: Authenticate all providers up front (#25123)

This PR fixes an issue where configured language model providers would
not show up unless the configuration view was opened.

The problem was that we were filtering unauthenticated language model
providers out of the language model selector, but would only
authenticate the active provider when the selector loaded.
Authenticating the rest of the providers was deferred until the
configuration view was opened for the first time.

Closes https://github.com/zed-industries/zed/issues/21821.

Release Notes:

- Fixed an issue where configured languages models were not showing up
in the language model selector until the configuration view was opened
for the first time.
This commit is contained in:
Marshall Bowers 2025-02-18 20:40:07 -05:00 committed by GitHub
parent 7a6b652ebc
commit 372aaecdb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 57 additions and 1 deletions

View file

@ -15,6 +15,7 @@ path = "src/language_model_selector.rs"
feature_flags.workspace = true
gpui.workspace = true
language_model.workspace = true
log.workspace = true
picker.workspace = true
proto.workspace = true
ui.workspace = true