Make autocompletion and copilot mutually exclusive

This commit is contained in:
Antonio Scandurra
2023-04-03 14:15:21 +02:00
parent b6a9d90609
commit ec5309b543
3 changed files with 36 additions and 53 deletions
@@ -171,6 +171,11 @@ impl SuggestionMap {
(snapshot.clone(), suggestion_edits)
}
pub fn has_suggestion(&self) -> bool {
let snapshot = self.0.lock();
snapshot.suggestion.is_some()
}
}
#[derive(Clone)]