Skip to content

Find/replace overlay: toggle replace visibility instead of recreating it#4206

Draft
HeikoKlare wants to merge 1 commit into
eclipse-platform:masterfrom
HeikoKlare:findreplace-overlay-always-create-replace-bar
Draft

Find/replace overlay: toggle replace visibility instead of recreating it#4206
HeikoKlare wants to merge 1 commit into
eclipse-platform:masterfrom
HeikoKlare:findreplace-overlay-always-create-replace-bar

Conversation

@HeikoKlare

@HeikoKlare HeikoKlare commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

The replace bar's widgets used to be created and disposed every time the replace toggle was clicked, which forced several call sites to guard against the bar not existing yet (open/close lifecycle methods, null-checks on replaceBar, a separate replace-action activation/deactivation path in the command support).

The replace bar is now created once, alongside the search bar, and hidden the same way narrow overlays already hide their toolbars: by toggling visibility and adapting the layout data, instead of disposing and recreating the widgets.

Creating and disposing the replace bar widgets on every toggle forced
several call sites to guard against the bar not existing yet (open/close
lifecycle methods, null-checks on replaceBar, a separate replace-action
activation/deactivation path in the command support).

Instead, create the replace bar once alongside the search bar and hide
it the same way narrow overlays already hide their toolbars, via
changing visibility and adapting the layout data.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   855 files  ±0     855 suites  ±0   49m 55s ⏱️ - 10m 55s
 8 120 tests ±0   7 877 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 262 runs  ±0  19 608 ✅ ±0  654 💤 ±0  0 ❌ ±0 

Results for commit 094b466. ± Comparison against base commit ce4e10f.

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