Skip to content

Ignore the initialization job of a replaced compare editor input - #3072

Open
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:compare-editor-stale-job-callback
Open

vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:compare-editor-stale-job-callback

Conversation

@vogella

@vogella vogella commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

The UI callback of the compare editor's initialization job did not check that its input is still the input of the editor. When an editor is reused for another input, the job of the previous input is canceled, and its callback then set the canceled state on the new input and closed the editor while that input was still initializing. The callback now returns early when the editor has moved on to another input.

CompareEditorReuseTest covers the case: it fails without the change because the reused editor is closed, and passes with it.

Follow-up to the review of #2990.

The UI callback of the job acted on whatever input the editor had by then, so the canceled job of a replaced input closed a reused compare editor while the new input was still initializing.

Assisted-by: multiple AI agents and layers of automated tooling 🤖
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ±0      54 suites  ±0   38m 37s ⏱️ +48s
 5 023 tests +1   5 001 ✅ +1   22 💤 ±0  0 ❌ ±0 
12 960 runs  +3  12 806 ✅ +3  154 💤 ±0  0 ❌ ±0 

Results for commit 1c638ae. ± Comparison against base commit 30dafa8.

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.

1 participant