Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the content-assist popup cleanup changes.
No open issues 🎉
What changed in this PR
Fixes #3582 by preventing JFace content-assist popups from accumulating display filters during asynchronous proposal recomputation, addressing additional-info popup flicker and UI-thread blocking.
Changes:
- Uninstalls any previous
PopupCloserinstallation before registering listeners and filters again. - Always uninstalls the closer when hiding proposals, clears tracked references, and uses the focus event’s display for deferred handling.
- Adds a regression test that recreates the proposal popup and verifies each mouse move is handled only once.
| File | Description |
|---|---|
| tests/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/contentassist/AsyncContentAssistTest.java | Tests that popup recreation does not accumulate display filters. |
| bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/PopupCloser.java | Cleans up prior installations and tracked references; adjusts deferred focus handling. |
| bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.java | Uninstalls the closer even when the proposal shell is already disposed. |
Review effort: Balanced
fedejeanne
reviewed
Nov 24, 2026
AsyncCompletionProposalPopup disposes the proposal shell directly when proposals are recomputed while typing. CompletionProposalPopup.hide() only uninstalled the PopupCloser if the shell was still valid, so its display filters were never removed and every re-install added another set. Over time this made the additional info popup flicker and block the UI thread. The proposal shell's dispose listener now uninstalls the PopupCloser, however the shell gets disposed. As safety nets, hide() always uninstalls the closer and PopupCloser.install() first removes any previous installation. hide() now also always unregisters the proposal selector from the ContentAssistant, which it skipped as well when the shell had already been disposed. Fixes eclipse-platform#3582 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
r-mennig
force-pushed
the
fix-popupcloser-filter-leak
branch
from
November 24, 2026 08:50
6b23b86 to
ffb67b3
Compare
fedejeanne
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AsyncCompletionProposalPopup disposes the proposal shell directly when
proposals are recomputed while typing. CompletionProposalPopup.hide()
only uninstalled the PopupCloser if the shell was still valid, so its
display filters were never removed and every re-install added another
set. Over time this made the additional info popup flicker and block
the UI thread.
The proposal shell's dispose listener now uninstalls the PopupCloser,
however the shell gets disposed. As safety nets, hide() always
uninstalls the closer and PopupCloser.install() first removes any
previous installation. hide() now also always unregisters the proposal
selector from the ContentAssistant, which it skipped as well when the
shell had already been disposed.
Fixes #3582