diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-27 12:45:41 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-27 12:45:41 +0100 |
commit | b2bf41b2bac48edd53e3059adfba4a12b3c96aa0 (patch) | |
tree | 35b1737a82c1ae207fa9288341c82fb0e8a5cfd4 /crates/ra_ide_api | |
parent | 0d1c6076073c73f57340e256dc25da9d37311ef0 (diff) | |
parent | a2845bb1f59e5f3d9f41012ace70037b783468ce (diff) |
Merge #1334
1334: check for cancellation during macro expansion r=matklad a=matklad
closes #1331
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/change.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/change.rs b/crates/ra_ide_api/src/change.rs index 2434f428f..0e64abdbd 100644 --- a/crates/ra_ide_api/src/change.rs +++ b/crates/ra_ide_api/src/change.rs | |||
@@ -156,6 +156,10 @@ impl RootDatabase { | |||
156 | pub(crate) fn apply_change(&mut self, change: AnalysisChange) { | 156 | pub(crate) fn apply_change(&mut self, change: AnalysisChange) { |
157 | let _p = profile("RootDatabase::apply_change"); | 157 | let _p = profile("RootDatabase::apply_change"); |
158 | log::info!("apply_change {:?}", change); | 158 | log::info!("apply_change {:?}", change); |
159 | { | ||
160 | let _p = profile("RootDatabase::apply_change/cancellation"); | ||
161 | self.salsa_runtime().next_revision(); | ||
162 | } | ||
159 | if !change.new_roots.is_empty() { | 163 | if !change.new_roots.is_empty() { |
160 | let mut local_roots = Vec::clone(&self.local_roots()); | 164 | let mut local_roots = Vec::clone(&self.local_roots()); |
161 | for (root_id, is_local) in change.new_roots { | 165 | for (root_id, is_local) in change.new_roots { |