edit predictions: Reset onboarding action (#24387)

https://github.com/user-attachments/assets/bb597b93-a616-4f8a-8608-013b8202799c


Release Notes:

- N/A
This commit is contained in:
Agus Zubiaga 2025-02-06 16:07:27 -03:00 committed by GitHub
parent 09967ac3d0
commit e1bb9570df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 50 additions and 24 deletions

View file

@ -206,6 +206,17 @@ pub enum InlineCompletionProvider {
Zed,
}
impl InlineCompletionProvider {
pub fn is_zed(&self) -> bool {
match self {
InlineCompletionProvider::Zed => true,
InlineCompletionProvider::None
| InlineCompletionProvider::Copilot
| InlineCompletionProvider::Supermaven => false,
}
}
}
/// The settings for edit predictions, such as [GitHub Copilot](https://github.com/features/copilot)
/// or [Supermaven](https://supermaven.com).
#[derive(Clone, Debug, Default)]