-
-
Notifications
You must be signed in to change notification settings - Fork 388
Incorrect highlighting in hover in VS Code #389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What I've gleaned so far:
Issue (2) in the OP can readily be fixed by adding extra spaces on the subsequent lines for the type annotation. For issue (1), I don't know what's best. We could preface the type being hovered over with the text |
Thanks for getting in touch @sheaf - great to have a line of communication with you! For (2) I would have thought the pretty printing has prefix spaces in it. So are we losing them? That's a definite bug and it would be great to fix. For (1) prefixing with I think we will have expressions eventually, but not for a while, so I'd not worry about it until then. |
Would work on it soon through #2348 work. To be able to show documentation of arguments - would need to layout arguments first. |
I have noticed the following issues in hover highlighting in VS Code:
Type highlighted as a value.

Multi-line type signature incorrectly highlighted.

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
inghcide
. Going to experiment.Let me know if you come across any other issues with hover syntax highlighting.
The text was updated successfully, but these errors were encountered: