Skip to content

Revert "Defer expensive project reference computation during selection changes"#3942

Merged
vogella merged 1 commit intoeclipse-platform:masterfrom
vogella:revert-defer-computeRelated
Apr 29, 2026
Merged

Revert "Defer expensive project reference computation during selection changes"#3942
vogella merged 1 commit intoeclipse-platform:masterfrom
vogella:revert-defer-computeRelated

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented Apr 29, 2026

Reverts PR #3871 (commit 3aaea37) and the follow-up Javadoc fix in 3b23ac5.

After #3871 the cheap updateSelection() override stopped consulting the project graph, so CloseUnrelatedProjectsAction stayed enabled after the last unrelated project was closed (also visible as an RCPTT regression on platform staging). Reverting restores the previous correct enablement; the original UI-thread cost addressed in #3871 can be tackled separately without breaking the action.

Closes #3941.

Refs #2636

…n changes"

This reverts commit 3aaea37e05f6d0e2ff90db5b2030dca8b1a98c83 and the
follow-up Javadoc fix in 3b23ac5.

The override of updateSelection() introduced in eclipse-platform#3871 left
CloseUnrelatedProjectsAction enabled after the last unrelated project
was closed, because the cheap enablement check no longer consulted the
project graph. Restoring the previous behavior is the simplest fix
while a follow-up addresses the original UI-thread cost separately.

Refs eclipse-platform#2636
Copy link
Copy Markdown

Copilot AI left a comment

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 reverts the prior change that made CloseUnrelatedProjectsAction.updateSelection() “cheap”, restoring the original (correct) enablement behavior that reflects whether any open unrelated projects actually remain to be closed.

Changes:

  • Removes the updateSelection(IStructuredSelection) override that bypassed unrelated-project computation during selection changes.
  • Restores enablement behavior to rely on the inherited CloseResourceAction.updateSelection(), which consults getSelectedResources() (overridden here to compute unrelated projects).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown
Contributor

Test Results

   852 files  ±0     852 suites  ±0   56m 29s ⏱️ + 2m 16s
 7 930 tests ±0   7 687 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 292 runs  ±0  19 637 ✅ ±0  655 💤 ±0  0 ❌ ±0 

Results for commit aa4d4bf. ± Comparison against base commit e86d7f2.

@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Apr 29, 2026

Revert restores the old (blocking / delaying startup) behavior, merging

@vogella vogella merged commit f2e2f88 into eclipse-platform:master Apr 29, 2026
22 checks passed
@vogella vogella deleted the revert-defer-computeRelated branch April 29, 2026 10:08
@basilevs
Copy link
Copy Markdown
Contributor

Has this reached simrel staging? RCPTT still fails.

@merks
Copy link
Copy Markdown
Contributor

merks commented Apr 30, 2026

The staging repository won’t change until the platform contributes M3 in two weeks. But, given M2 is complete, the platform could contribute something sooner as well.

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.

4 participants