Skip to content

[Sticky scrolling] Commented-out code is being incorrectly recognized #2128

@jakub-suliga

Description

@jakub-suliga

When code is commented out, sticky scrolling incorrectly detects the line.

To reproduce this issue:
Under org.eclipse.jdt.ui.text.folding.DefaultJavaFoldingStructureProvider.CommentPosition.findFirstContent(CharSequence, int), some code is commented out.

image

In the method org.eclipse.jdt.ui.text.folding.DefaultJavaFoldingStructureProvider.CommentPosition.computeProjectionRegions(IDocument), there is some commented-out code.
Before the the commented out line:

image

And after:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions