diff options
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/db.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/db.rs b/crates/ra_ide_api/src/db.rs index 33d3903bb..d84a0e7be 100644 --- a/crates/ra_ide_api/src/db.rs +++ b/crates/ra_ide_api/src/db.rs | |||
@@ -31,6 +31,11 @@ impl salsa::Database for RootDatabase { | |||
31 | fn on_propagated_panic(&self) -> ! { | 31 | fn on_propagated_panic(&self) -> ! { |
32 | Canceled::throw() | 32 | Canceled::throw() |
33 | } | 33 | } |
34 | fn salsa_event(&self, event: impl Fn() -> salsa::Event<RootDatabase>) { | ||
35 | if let salsa::EventKind::DidValidateMemoizedValue { .. } = event().kind { | ||
36 | self.check_canceled(); | ||
37 | } | ||
38 | } | ||
34 | } | 39 | } |
35 | 40 | ||
36 | impl Default for RootDatabase { | 41 | impl Default for RootDatabase { |