Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/lib.rs')
-rw-r--r--crates/ide/src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs
index 0d87f4fcfa..e02a691920 100644
--- a/crates/ide/src/lib.rs
+++ b/crates/ide/src/lib.rs
@@ -342,11 +342,16 @@ impl Analysis {
&self,
position: FilePosition,
char_typed: char,
+ autoclose: bool,
) -> 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);
+ }
+
self.with_db(|db| typing::on_char_typed(db, position, char_typed))
}