mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
check cancellation when expanding macros
This commit is contained in:
parent
0d2f97e83e
commit
a2845bb1f5
2 changed files with 3 additions and 3 deletions
|
@ -61,6 +61,7 @@ impl HirFileId {
|
|||
db: &impl DefDatabase,
|
||||
file_id: HirFileId,
|
||||
) -> Option<TreeArc<SyntaxNode>> {
|
||||
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()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue