Skip to content

Commit 0d2f97e

Browse files
committed
specifically profile cancellation
1 parent cf214ac commit 0d2f97e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/ra_ide_api/src/change.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ impl RootDatabase {
156156
pub(crate) fn apply_change(&mut self, change: AnalysisChange) {
157157
let _p = profile("RootDatabase::apply_change");
158158
log::info!("apply_change {:?}", change);
159+
{
160+
let _p = profile("RootDatabase::apply_change/cancellation");
161+
self.salsa_runtime().next_revision();
162+
}
159163
if !change.new_roots.is_empty() {
160164
let mut local_roots = Vec::clone(&self.local_roots());
161165
for (root_id, is_local) in change.new_roots {

0 commit comments

Comments
 (0)