Skip to content

Prevent editor "jumping" by using placeholders for Code Minings #3723

@vogella

Description

@vogella

@tobiasmelcher asked for improvement suggestions for code minings. Here is one:

Description: Currently, when opening a file, Code Minings are calculated asynchronously and injected into the editor upon completion. If this calculation takes more than a few milliseconds, the source code shifts downward unexpectedly while the user is trying to read or edit.

Suggested Improvement: Implement layout reservation or placeholders. If possible, the Code Mining provider should immediately return an empty placeholder of a fixed height. This ensures the space is already allocated, allowing the content to fade in once the calculation is finished without moving the rest of the source code.

If the current architecture doesn't allow for pre-allocating vertical space, please feel free to close this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions