chore: deprecate typing.autoClosingAngleBrackets configuration

Signed-off-by: Tarek <tareknaser360@gmail.com>
This commit is contained in:
Tarek 2024-12-03 22:38:21 +02:00
parent d6b701e251
commit 9aff46632e
5 changed files with 1 additions and 31 deletions

View file

@ -410,16 +410,12 @@ impl Analysis {
&self,
position: FilePosition,
char_typed: char,
autoclose: bool,
chars_to_exclude: Option<String>,
) -> Cancellable<Option<SourceChange>> {
// Fast path to not even parse the file.
if !typing::TRIGGER_CHARS.contains(char_typed) {
return Ok(None);
}
if char_typed == '<' && !autoclose {
return Ok(None);
}
if let Some(chars_to_exclude) = chars_to_exclude {
if chars_to_exclude.contains(char_typed) {
return Ok(None);