about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/ide
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2025-01-15 12:40:45 +0000
committerGitHub <noreply@github.com>2025-01-15 12:40:45 +0000
commit97522d1fe033e7410e54cb7d64210f2dca4fd0be (patch)
tree5994d091aa98213dc1b2e09745a4d6cd4385502d /src/tools/rust-analyzer/crates/ide
parent0ed9d1c8e5dccf95eb95f8de41a7b065dd11bcf6 (diff)
parent7be6698e751d82e78770c9c1b4df77d4bc87023c (diff)
downloadrust-97522d1fe033e7410e54cb7d64210f2dca4fd0be.tar.gz
rust-97522d1fe033e7410e54cb7d64210f2dca4fd0be.zip
Merge pull request #18939 from Veykril/push-wztmylkyqttu
Flip on typing config to be opt-in, better defaults
Diffstat (limited to 'src/tools/rust-analyzer/crates/ide')
-rw-r--r--src/tools/rust-analyzer/crates/ide/src/lib.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/tools/rust-analyzer/crates/ide/src/lib.rs b/src/tools/rust-analyzer/crates/ide/src/lib.rs
index 043e8542154..346e2862b0f 100644
--- a/src/tools/rust-analyzer/crates/ide/src/lib.rs
+++ b/src/tools/rust-analyzer/crates/ide/src/lib.rs
@@ -404,17 +404,11 @@ impl Analysis {
         &self,
         position: FilePosition,
         char_typed: char,
-        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 let Some(chars_to_exclude) = chars_to_exclude {
-            if chars_to_exclude.contains(char_typed) {
-                return Ok(None);
-            }
-        }
 
         self.with_db(|db| typing::on_char_typed(db, position, char_typed))
     }