diff options
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r-- | crates/ra_ide_api/src/db.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/db.rs b/crates/ra_ide_api/src/db.rs index b3f395502..82b061419 100644 --- a/crates/ra_ide_api/src/db.rs +++ b/crates/ra_ide_api/src/db.rs | |||
@@ -33,8 +33,12 @@ impl salsa::Database for RootDatabase { | |||
33 | Canceled::throw() | 33 | Canceled::throw() |
34 | } | 34 | } |
35 | fn salsa_event(&self, event: impl Fn() -> salsa::Event<RootDatabase>) { | 35 | fn salsa_event(&self, event: impl Fn() -> salsa::Event<RootDatabase>) { |
36 | if let salsa::EventKind::DidValidateMemoizedValue { .. } = event().kind { | 36 | match event().kind { |
37 | self.check_canceled(); | 37 | salsa::EventKind::DidValidateMemoizedValue { .. } |
38 | | salsa::EventKind::WillExecute { .. } => { | ||
39 | self.check_canceled(); | ||
40 | } | ||
41 | _ => (), | ||
38 | } | 42 | } |
39 | } | 43 | } |
40 | } | 44 | } |