Skip to content

JS Editing: Editor jumping up and down typing (after a short pause in typing) - seems related to the collapse imports at the top of the file. #1508

Closed
@jridge-ezclocker

Description

@jridge-ezclocker

The JS editor will collapse imports when opened. With imports collapsed, I begin editing some of the JS code and after pausing typing the editor jumps up/down (which appears to be the expanding/collapsing imports refreshing for some reason) and causes the editor to scroll into the wrong position. Even when just typing a space - this happens. It makes editing JS files in eclipse impossible - so I'm using a different IDE now (VSCode).

The collapsing of imports seems very bugged and might be the root of the problem. The imports never stay 'un-folded' and 'un-folding' them tends to never work property without typing a space at the end of a import line (see some example screen shots below). This code folding issue might well need to be written up as a different issue - just let me know.

Imports Collapsed
collapse-imports

After Click + on the Collapsed Import Line you can see they do not fully expand and clicking fold/unfold doesn't correct the problem:
failed-expanded-imports

In order to see imports, I have to type a space at the end of one of the visible lines. Then they will mostly appear, although sometimes they immediately collapse again. Always collapsing after typing or copying in a new import (even when I haven't finished typing it in). Very frustrating.

As a side point: I do not want the imports folded to begin with but do not see anything that will disable the functionality (please guide me if there is somewhere I can disable that).

I do have other plugins installed - I removed one (AnyEdit) that I suspected might be causing an issue but it had not effect on the problem after removing (still existed). I can provide the plugins listed in case you need to review or ask me to remove one and check the results. In general it Spring Tools, DevStyle, AspectJ Tools, SonarLint, and JAutoDoc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions