Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find/replace overlay: store search in history when leaving overlay #2291 #2296

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

HeikoKlare
Copy link
Contributor

The find/replace overlay only stores a search input in the history when an explicit search operation (forward/backward/all search) is performed. In case only an incremental search (via search-as-you-type) is performed, this input will not be added to the history. In some cases, no explicit search is executed but the final result of a search-as-you-type input is sufficient for the user. Since this final result, after they finished typing, also represented a relevant search input, it should be added to the history.

This change addresses the issue by adding a search input to the history also when the overlay is left, i.e., the focus is moved to somewhere else, such as the target editor or some other view.

Fixes #2291

@HeikoKlare
Copy link
Contributor Author

@jukzi fyi

Copy link
Contributor

github-actions bot commented Sep 18, 2024

Test Results

 1 815 files  ±0   1 815 suites  ±0   1h 32m 29s ⏱️ - 4m 30s
 7 699 tests ±0   7 470 ✅ ±0  228 💤 ±0  1 ❌ ±0 
24 258 runs  ±0  23 510 ✅ ±0  747 💤 ±0  1 ❌ ±0 

For more details on these failures, see this check.

Results for commit b3e2058. ± Comparison against base commit fe9d7e2.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare marked this pull request as ready for review September 19, 2024 06:45
…lipse-platform#2291

The find/replace overlay only stores a search input in the history when
an explicit search operation (forward/backward/all search) is performed.
In case only an incremental search (via search-as-you-type) is
performed, this input will not be added to the history. In some cases,
no explicit search is executed but the final result of a
search-as-you-type input is sufficient for the user. Since this final
result, after they finished typing, also represented a relevant search
input, it should be added to the history.

This change addresses the issue by adding a search input to the history
also when the overlay is left, i.e., the focus is moved to somewhere
else, such as the target editor or some other view.

Fixes eclipse-platform#2291
@HeikoKlare
Copy link
Contributor Author

Failing test is unrelated and already documented: #294

@HeikoKlare HeikoKlare merged commit 88b1d36 into eclipse-platform:master Sep 19, 2024
14 of 16 checks passed
@HeikoKlare HeikoKlare deleted the issue-2291 branch September 19, 2024 07:37
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.

Find/Replace Overlay: History missing
1 participant