diff --git a/crates/ra_ide_api/src/change.rs b/crates/ra_ide_api/src/change.rs index 2434f428f6..0e64abdbd4 100644 --- a/crates/ra_ide_api/src/change.rs +++ b/crates/ra_ide_api/src/change.rs @@ -156,6 +156,10 @@ impl RootDatabase { pub(crate) fn apply_change(&mut self, change: AnalysisChange) { let _p = profile("RootDatabase::apply_change"); log::info!("apply_change {:?}", change); + { + let _p = profile("RootDatabase::apply_change/cancellation"); + self.salsa_runtime().next_revision(); + } if !change.new_roots.is_empty() { let mut local_roots = Vec::clone(&self.local_roots()); for (root_id, is_local) in change.new_roots {