eclipse.platform.ui icon indicating copy to clipboard operation
eclipse.platform.ui copied to clipboard

Sticky scrolling resets on comment lines

Open dgibson66 opened this issue 1 year ago • 2 comments

When sticky scrolling encounters a line where the comment starts at column 1, it resets. Unfortunately, this is exactly how Toggle Comment creates comments. Please make sticky scrolling ignore comment lines.

dgibson66 avatar Sep 13 '24 02:09 dgibson66

Sticky scrolling is a UI feature, therefore moved this to the eclipse.platform.ui repository.

@Christopher-Hermann can you please have a look at this? But since Stick-Scrolling is not language sensitive and only considers indentation I fear that's how it is working.

HannesWell avatar Sep 29 '24 18:09 HannesWell

Yes, the issue is already know. Good news: I'm already working on an extension point so that every language can provide specific Sticky-Scrolling calculation. Bad news: I assume it will take some time until it is adapted for java

Also see #1950 and #2128

Christopher-Hermann avatar Sep 30 '24 07:09 Christopher-Hermann

Fixed with #2756 and https://github.com/eclipse-jdt/eclipse.jdt.ui/pull/2149

Christopher-Hermann avatar Oct 20 '25 05:10 Christopher-Hermann