Skip to content

Add preference to configure GenericEditorContentAssistant.contextInformationPopupOrientation #4248

Open

Description

@FlorianKroiss

While working with the generic text editor, I noticed that the context information is placed below the cursor, which causes any additional shells, such as the proposal list or the additional information popup to cover the context information.

Example:
Initially only the context information is shown:
Image
If the user triggers the proposals or starts typing, the context info is barely visible:
Image

ContentAssistant already has the option to show the context above the cursor (which is the default) , but GenericEditorContentAssistant hard-codes this to be rendered below:

I propose to add a preference so the user can decide where the context info is shown.

Moving it to the top looks like this:
Image

For comparison, VS Code also displays this information at the top, if there is enough space:
Image
If there isn't enough space, it also displays the info below the cursor where it also covered by any additional popups.

Thoughts?

Activity

  1. vogella commented on Aug 13, 2026

    @vogella
    Contributor

    VScode style looks better, I think we should just implement it like this, no preference needed.

    Please provide a PR for this.

  2. FlorianKroiss commented on Aug 13, 2026

    @FlorianKroiss
    ContributorAuthor

    Just to clarify: We should just use IContentAssistant.CONTEXT_INFO_ABOVE in GenericEditorContentAssistant?

  3. vogella commented on Aug 13, 2026

    @vogella
    Contributor

    I would suggest to also enhance the top-tip display. The long and small top-tip looks really bad, while the VScode one looks really good. And I have not yet looked at the corresponding code, so I currently cannot help with code questions.

  4. FlorianKroiss commented on Aug 18, 2026

    @FlorianKroiss
    ContributorAuthor

    I agree that the contextinfo popup should be improved overall:

    • Limit the initial width / height
    • Make the popup focusable & scrollable

    Today, the popup is neither of the above, so if the displayed information is large, e.g., because it contains the documentation, the popup is also large and cannot be resized:
    Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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