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

[StickyScrolling] Don't style outdated sticky lines #2719

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

Christopher-Hermann
Copy link
Contributor

The search view with "reuse editor" enabled sets new source code in the existing editor and fires a extPresentation change event. In this call, it can happen that the sticky line number exceeds the amount of line in the new source code. In general this is not a problem since the sticky lines will be recalculated afterwards, but to avoid IllegalArgumentException it is checked for this case.

Fixes #2678

Copy link
Contributor

github-actions bot commented Jan 17, 2025

Test Results

 1 212 files   -   606   1 212 suites   - 606   49m 40s ⏱️ - 46m 13s
 7 739 tests ±    0   7 511 ✅ +    1  228 💤 ±  0  0 ❌  - 1 
16 252 runs   - 8 126  15 784 ✅  - 7 844  468 💤  - 281  0 ❌  - 1 

Results for commit 551f15d. ± Comparison against base commit dbf808e.

♻️ This comment has been updated with latest results.

The search view with "reuse editor" enabled sets new source code in the existing editor and fires a extPresentation change event. In this call, it can happen that the sticky line number exceeds the amount of line in the new source code. In general this is not a problem since the sticky lines will be recalculated afterwards, but to avoid IllegalArgumentException it is checked for this case.

Fixes eclipse-platform#2678
@iloveeclipse iloveeclipse merged commit 815c9c0 into eclipse-platform:master Jan 17, 2025
14 of 16 checks passed
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.

StickyScrolling: Exceptions while opening Java editors from Search view
2 participants