Skip to content

Suggestions above imports cause page scrolling jumps #301

@robrix

Description

@robrix

The suggestions shown above imports get added to the editor when things load, but when there’s an error, they go away. The imports are at the top, so the rest of the file then jumps up and down as they get added and removed, which is distracting and even confusing—I frequently lose my place when this happens and have to rebuild some context—and since it happens a lot as I edit, it’s become quite a noticeable friction.

Can they be cached and only invalidated when the line they relate to is changed/removed? Then the delta would only be one line for most edits, and even then it would only occur when I’m actually working on the import lines themselves (which is much less common).

Additionally, is there any configuration to disable these specific things altogether? I’ve got the corresponding warnings off for good reason, and I frequently click these by accident when trying to just place my cursor. By contrast, I do not wish to disable the suggestions for inserting type signatures above exported bindings, so disabling the editor feature would be too coarse-grained.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementAn enhancement to an already existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions