Skip to content

Only set dialog.setOpenOnRun(false) according to preference #486#4124

Open
fedejeanne wants to merge 2 commits into
eclipse-platform:masterfrom
fedejeanne:progress_monitor_run_in_background
Open

Only set dialog.setOpenOnRun(false) according to preference #486#4124
fedejeanne wants to merge 2 commits into
eclipse-platform:masterfrom
fedejeanne:progress_monitor_run_in_background

Conversation

@fedejeanne

Copy link
Copy Markdown
Member

Fixes #4086

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 when shouldRunInBackground() is true.
  • 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.

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Test Results

   855 files  ±0     855 suites  ±0   50m 18s ⏱️ - 2m 48s
 8 083 tests ±0   7 840 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 151 runs  ±0  19 497 ✅ ±0  654 💤 ±0  0 ❌ ±0 

Results for commit 19773cc. ± Comparison against base commit 55ec079.

♻️ This comment has been updated with latest results.

@fedejeanne fedejeanne force-pushed the progress_monitor_run_in_background branch from 5639b51 to 4a2b85f Compare June 22, 2026 09:36
Same as with the other call in the same class, whoever schedules the
progress dialog to be shown after a delay (800 ms) should also make sure
that the dialog doesn't pop-up if the runnable is finished before the
delay has elapsed.
@fedejeanne fedejeanne force-pushed the progress_monitor_run_in_background branch from 4a2b85f to 19773cc Compare June 22, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PlatformUI.getWorkbench().getProgressService().run(true, false, runnable) does not show progress dialog anymore

2 participants