windows: Dispatch missing foreground tasks (#9469)

Some foreground tasks were being missed causing some unresponsiveness in
Zed. The foreground tasks used to happen but it was changed in #9351
(here:
https://github.com/zed-industries/zed/pull/9351/files#diff-5b5e706f04c15d77efd23989ec5b1b1cf73d36144e2d066a074de165533ecaeaL227)

Release Notes:

- N/A
This commit is contained in:
Ezekiel Warren 2024-03-18 11:01:51 -07:00 committed by GitHub
parent 3d08e20c72
commit 0e83b22583
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -247,6 +247,9 @@ impl Platform for WindowsPlatform {
DispatchMessageW(&msg); DispatchMessageW(&msg);
} }
} }
// foreground tasks may have been queued in the message handlers
self.run_foreground_tasks();
} }
_ => { _ => {
log::error!("Something went wrong while waiting {:?}", wait_result); log::error!("Something went wrong while waiting {:?}", wait_result);