Skip to content

Sticky Scrolling: Sticky lines are not updated if document is changed e.g. by source cleanup #3253

@wahlbrink

Description

@wahlbrink

The sticky lines are not updated, when the document is changed e.g. by the source cleanup of Java:

Image

Note the wrong styling.

Steps to reproduce

  1. Open a Java editor
  2. Add some unnecessary imports
  3. Scroll down to get some sticky lines
  4. Execute Source > Clean up... to remove the unnecessary imports

Additional infos

In step 4 the JavaStickyLinesProvider is not called after the cleanup.
-> line numbers in existing StickyLine objects become invalid

Tested under this environment:

Version: 2025-09 (4.37)
Build id: I20250905-0730
on Win 11

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