From a2845bb1f59e5f3d9f41012ace70037b783468ce Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 27 May 2019 14:41:14 +0300 Subject: check cancellation when expanding macros --- crates/ra_hir/src/ids.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/ra_hir/src') diff --git a/crates/ra_hir/src/ids.rs b/crates/ra_hir/src/ids.rs index 2eb7f0da0..5c3799e95 100644 --- a/crates/ra_hir/src/ids.rs +++ b/crates/ra_hir/src/ids.rs @@ -61,6 +61,7 @@ impl HirFileId { db: &impl DefDatabase, file_id: HirFileId, ) -> Option> { + db.check_canceled(); let _p = profile("parse_or_expand_query"); match file_id.0 { HirFileIdRepr::File(file_id) => Some(db.parse(file_id).syntax().to_owned()), -- cgit v1.2.3