edit_prediction_ui: Fix edit prediction provider checkmark - #56250
Conversation
|
We require contributors to sign our Contributor License Agreement, and we don't have @terror on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
6effe9d to
448010a
Compare
MrSubidubi
left a comment
There was a problem hiding this comment.
Thank you for looking into this!
The fix itself looks good, could you do me the favor of moving provider == EditPredictionProvider::Zed && is_zed_provider_disabled into a variable with fitting name and use that everywhere here?
MrSubidubi
left a comment
There was a problem hiding this comment.
Nice, much better! Can we go for a better name here though? Like is_zed_provider_and_disabled or provider_is_zed_and_disabled? Not too big of a fan of either, if you have a better name (or disagree with me here), feel free to share!
|
MrSubidubi
left a comment
There was a problem hiding this comment.
Yeah good call indeed.
Treat yourself to some release notes as noted by the bot, otherwise looks good! Thanks for your contribution here, the quick follow-ups and congratulations to your first contribution! 🎉
|
/cherry-pick preview |
…ew) (#56291) Cherry-pick of #56250 to preview ---- Resolves #56129 The edit prediction status bar menu only showed a checkmark for the active provider when that provider was Zed AI. Non-Zed providers such as Mercury could be selected and active, but the Providers section rendered them as unchecked because the toggle condition required `provider = EditPredictionProvider::Zed`. This updates the menu condition to show the checkmark for any active provider, while preserving the existing exception that hides the Zed AI checkmark when Zed AI is disabled by organization policy. <div align="center"> <img width="371" height="187" alt="Screenshot 2026-05-08 at 11 27 49 PM" src="https://github.com/user-attachments/assets/5278a102-bd7d-44a5-a655-74c6ed90b0f9" /> </div> Release Notes: - Fixed edit prediction provider menu checkmarks for active non-Zed providers. Co-authored-by: liam <liam@scalzulli.com>
…e) (#56292) Cherry-pick of #56250 to stable ---- Resolves #56129 The edit prediction status bar menu only showed a checkmark for the active provider when that provider was Zed AI. Non-Zed providers such as Mercury could be selected and active, but the Providers section rendered them as unchecked because the toggle condition required `provider = EditPredictionProvider::Zed`. This updates the menu condition to show the checkmark for any active provider, while preserving the existing exception that hides the Zed AI checkmark when Zed AI is disabled by organization policy. <div align="center"> <img width="371" height="187" alt="Screenshot 2026-05-08 at 11 27 49 PM" src="https://github.com/user-attachments/assets/5278a102-bd7d-44a5-a655-74c6ed90b0f9" /> </div> Release Notes: - Fixed edit prediction provider menu checkmarks for active non-Zed providers. Co-authored-by: liam <liam@scalzulli.com>
Resolves zed-industries#56129 The edit prediction status bar menu only showed a checkmark for the active provider when that provider was Zed AI. Non-Zed providers such as Mercury could be selected and active, but the Providers section rendered them as unchecked because the toggle condition required `provider = EditPredictionProvider::Zed`. This updates the menu condition to show the checkmark for any active provider, while preserving the existing exception that hides the Zed AI checkmark when Zed AI is disabled by organization policy. <div align="center"> <img width="371" height="187" alt="Screenshot 2026-05-08 at 11 27 49 PM" src="https://github.com/user-attachments/assets/5278a102-bd7d-44a5-a655-74c6ed90b0f9" /> </div> Release Notes: - Fixed edit prediction provider menu checkmarks for active non-Zed providers.
Resolves zed-industries#56129 The edit prediction status bar menu only showed a checkmark for the active provider when that provider was Zed AI. Non-Zed providers such as Mercury could be selected and active, but the Providers section rendered them as unchecked because the toggle condition required `provider = EditPredictionProvider::Zed`. This updates the menu condition to show the checkmark for any active provider, while preserving the existing exception that hides the Zed AI checkmark when Zed AI is disabled by organization policy. <div align="center"> <img width="371" height="187" alt="Screenshot 2026-05-08 at 11 27 49 PM" src="https://github.com/user-attachments/assets/5278a102-bd7d-44a5-a655-74c6ed90b0f9" /> </div> Release Notes: - Fixed edit prediction provider menu checkmarks for active non-Zed providers.
Resolves #56129
The edit prediction status bar menu only showed a checkmark for the active provider when that provider was Zed AI. Non-Zed providers such as Mercury could be selected and active, but the Providers section rendered them as unchecked because the toggle condition required
provider = EditPredictionProvider::Zed.This updates the menu condition to show the checkmark for any active provider, while preserving the existing exception that hides the Zed AI checkmark when Zed AI is disabled by organization policy.
Release Notes: