Skip to content

Incorrect highlighting in hover in VS Code #389

Open
@sheaf

Description

@sheaf

I have noticed the following issues in hover highlighting in VS Code:

  1. Type highlighted as a value.
    highlight_hover_error_1

  2. Multi-line type signature incorrectly highlighted.
    highlight_hover_error_2

As one of the maintainers of the VS Code syntax highlighting extension I'd like to figure out how to go about fixing these issues.

Could someone let me know how the hover syntax highlighting works in VS Code, i.e. which part of the code is responsible for generating the content of the hover boxes, and in what way is the syntax highlighting engine being called? Then I can try to solve the above two problems. Edit: this appears to be at Development.IDE.Spans.AtPoint.atPoint in ghcide. Going to experiment.

Let me know if you come across any other issues with hover syntax highlighting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: ghcidetype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions