internal: Make autoclosing angle brackets configurable, disabled by default

This commit is contained in:
Lukas Wirth 2022-05-25 12:15:36 +02:00
parent d7c147406e
commit f02c915eb5
6 changed files with 25 additions and 2 deletions

View file

@ -92,7 +92,7 @@ fn on_char_typed_inner(
'<' => on_left_angle_typed(&file.tree(), offset),
'>' => conv(on_right_angle_typed(&file.tree(), offset)),
'{' => conv(on_opening_brace_typed(file, offset)),
_ => unreachable!(),
_ => return None,
};
fn conv(text_edit: Option<TextEdit>) -> Option<ExtendedTextEdit> {