Skip to content

Conversation

@Christopher-Hermann
Copy link
Contributor

The source viewer can contain hidden lines, for example via code folding. The sticky line needs to consider this lines (see ITextViewerExtension5) when calculating the text and the style ranges from the text widget

How to retest
Open a java class and collapse a method implementation. Sticky lines created for lines below the collapsed method was showing a wrong text.
With this fix, the correct text is displayed again.

@Christopher-Hermann Christopher-Hermann self-assigned this Dec 6, 2024
@Christopher-Hermann Christopher-Hermann added the bug Something isn't working label Dec 6, 2024
@BeckerWdf
Copy link
Member

How to retest
Open a java class and collapse a method implementation. Sticky lines created for lines below the collapsed method was showing a wrong text.
With this fix, the correct text is displayed again.

I tested this on macOS. Before the fix sticky line numbers where correct but the content was wrong. With this change everything looks good.

@BeckerWdf BeckerWdf added this to the 4.35 M1 milestone Dec 6, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2024

Test Results

 1 821 files   1 821 suites   1h 48m 51s ⏱️
 7 727 tests  7 497 ✅ 228 💤 2 ❌
24 342 runs  23 593 ✅ 747 💤 2 ❌

For more details on these failures, see this check.

Results for commit 9dfcbaf.

♻️ This comment has been updated with latest results.

The source viewer can contain hidden lines, for example via code folding. The sticky line needs to consider this lines (see ITextViewerExtension5) when calculating the text and the style ranges from the text widget
@Christopher-Hermann
Copy link
Contributor Author

Failing tests are unrelated...

@Christopher-Hermann Christopher-Hermann merged commit f082218 into eclipse-platform:master Dec 6, 2024
9 of 14 checks passed
@Christopher-Hermann Christopher-Hermann deleted the fixStickyLine branch December 6, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants