Only set dialog.setOpenOnRun(false) according to preference #486#4124
Only set dialog.setOpenOnRun(false) according to preference #486#4124fedejeanne wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adjusts how the workbench progress service decides whether to open a modal progress dialog when running “backward compatible” operations (ProgressManager#run branch for !fork || !cancelable). It aims to restore expected progress reporting behavior (Issue #4086) by only disabling automatic dialog opening (setOpenOnRun(false)) when the “Always run in background” preference indicates dialogs should not be shown.
Changes:
- Moves
dialog.setOpenOnRun(false)so it is applied only whenshouldRunInBackground()istrue. - Keeps the delayed “open progress dialog” scheduling path when dialogs are allowed.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| if (!shouldRunInBackground()) { | ||
| scheduleProgressMonitorJob(dialog); | ||
| } else { | ||
| dialog.setOpenOnRun(false); | ||
| } |
Test Results 855 files ±0 855 suites ±0 55m 30s ⏱️ + 4m 5s For more details on these failures, see this check. Results for commit 5639b51. ± Comparison against base commit 552c9e4. |
Fixes #4086