Skip to content

Conversation

@HeikoKlare
Copy link
Contributor

When closing a workbench window while a find/replace overlay is open and one of the input fields (find/replace) has focus, an exception is thrown. This is caused by the FindReplaceOverlay trying to reactive shortcuts of the underlying editor while the input field is losing focus, but the handler service to perform the activation in is already disposed.

Since there is no direct way of determining the underlying handler service from the overlay to identify whether it is already disposed, this change makes the overlay simply check for the workbench window currently being closed. This is reasonable as the reactivation of handlers is unnecessary if the underlying window is closed anyway.

Fixes #2666

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2025

Test Results

 1 821 files  ±0   1 821 suites  ±0   1h 32m 7s ⏱️ + 1m 2s
 7 738 tests ±0   7 510 ✅ +1  228 💤 ±0  0 ❌  - 1 
24 375 runs  ±0  23 626 ✅ +1  749 💤 ±0  0 ❌  - 1 

Results for commit cf17f0a. ± Comparison against base commit 58bb65c.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare marked this pull request as ready for review January 7, 2025 16:10
…lipse-platform#2666

When closing a workbench window while a find/replace overlay is open and
one of the input fields (find/replace) has focus, an exception is
thrown. This is caused by the FindReplaceOverlay trying to reactive
shortcuts of the underlying editor while the input field is losing
focus, but the handler service to perform the activation in is already
disposed.

Since there is no direct way of determining the underlying handler
service from the overlay to identify whether it is already disposed,
this change makes the overlay simply check for the workbench window
currently being closed. This is reasonable as the reactivation of
handlers is unnecessary if the underlying window is closed anyway.

Fixes eclipse-platform#2666
@HeikoKlare HeikoKlare merged commit e3382fc into eclipse-platform:master Jan 8, 2025
17 checks passed
@HeikoKlare HeikoKlare deleted the issue-2666 branch January 8, 2025 11:09
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.

FindReplaceOverlay: exception when input field has focus while closing workbench window

1 participant