Make autocompletion and copilot mutually exclusive

This commit is contained in:
Antonio Scandurra 2023-04-03 13:56:11 +02:00
parent b6a9d90609
commit ec5309b543
3 changed files with 36 additions and 53 deletions

View file

@ -230,6 +230,10 @@ impl DisplayMap {
self.text_highlights.remove(&Some(type_id))
}
pub fn has_suggestion(&self) -> bool {
self.suggestion_map.has_suggestion()
}
pub fn replace_suggestion<T>(
&self,
new_suggestion: Option<Suggestion<T>>,