From 0e83b22583598a10c42fe5ebfa5b98b2e81ba195 Mon Sep 17 00:00:00 2001 From: Ezekiel Warren Date: Mon, 18 Mar 2024 11:01:51 -0700 Subject: [PATCH] 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 --- crates/gpui/src/platform/windows/platform.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/gpui/src/platform/windows/platform.rs b/crates/gpui/src/platform/windows/platform.rs index 663bf0c7202bf1640314ee86240f0bcc98787248..09e1297262595e90c560a98a1a062a31b7665a63 100644 --- a/crates/gpui/src/platform/windows/platform.rs +++ b/crates/gpui/src/platform/windows/platform.rs @@ -247,6 +247,9 @@ impl Platform for WindowsPlatform { 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);