mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 15:14:32 +00:00
Check cancellation when updating imports recursively
For winapi, this takes a lot of CPU time without doing queries and causes the main event loop to stall on cancellation.
This commit is contained in:
parent
760ee8173c
commit
8baa2b727d
1 changed files with 1 additions and 0 deletions
|
@ -573,6 +573,7 @@ impl DefCollector<'_> {
|
|||
vis: Visibility,
|
||||
import_type: ImportType,
|
||||
) {
|
||||
self.db.check_canceled();
|
||||
self.update_recursive(module_id, resolutions, vis, import_type, 0)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue