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

Issue 2279 extra #2320

Merged
merged 2 commits into from
Sep 24, 2024
Merged

Conversation

iloveeclipse
Copy link
Member

  1. File search: show "results filtered" message also in the tree mode

This change unifies "filter" label handling for tree/table mode in the
file search, we show now that the matches are filtered in both cases.

Example:
image

  1. File search: cache getMatchCount() result to avoid UI hangs

If the search view has matches for 100.000 files (like above), it would hang forever on updating the view via F5 because it asks getMatchCount() for every element and that traverses entire result again and again.

This change remembers last computed result and returns that value if there were no further changes on the search result itself. This avoids UI hang completely.

See #2279

Copy link
Contributor

github-actions bot commented Sep 24, 2024

Test Results

 1 815 files  ±0   1 815 suites  ±0   1h 37m 51s ⏱️ + 2m 27s
 7 699 tests ±0   7 471 ✅ +1  228 💤 ±0  0 ❌  - 1 
24 258 runs  ±0  23 511 ✅ +1  747 💤 ±0  0 ❌  - 1 

Results for commit ef3d2bf. ± Comparison against base commit eb96e2e.

♻️ This comment has been updated with latest results.

This change unifies "filter" label handling for tree/table mode in the
file search, we show now that the matches are filtered in both cases.

See eclipse-platform#2279
If the search view has matches for 100.000 files, it would hang forever
on updating the view via F5 because it asks getMatchCount() for every
element and that traverses entire result again and again.

This change remembers last computed result and returns that value if
there were no further changes on the search result itself.

See eclipse-platform#2279
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