Use formatting options

This commit is contained in:
Kirill Bulatov 2023-05-23 17:38:05 +03:00
parent 3327e8a6dd
commit b9dabb165e
4 changed files with 48 additions and 18 deletions

View file

@ -2122,6 +2122,7 @@ impl Editor {
let had_active_copilot_suggestion = this.has_active_copilot_suggestion(cx);
this.change_selections(Some(Autoscroll::fit()), cx, |s| s.select(new_selections));
// When buffer contents is updated and caret is moved, try triggering on type formatting.
if text.len() == 1 {
let input_char = text.chars().next().expect("single char input");
if let Some(on_type_format_task) = this.trigger_on_type_format(input_char, cx) {