-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Hover sometimes shows nice colors and sometimes not #2081
Comments
I think @jrieken worked on the hovers |
We use the tokenisers for that |
@jrieken For the given example, the hover has content: That's not a valid TypeScipt syntax, that's why 'void' and 'registerEmitters' aren't colorized. |
I would totally blame the TypeScript grammar for this because it makes no sense to be context sensitive when tokenising. The 'fix' would be for TypeScript to not use this feature but have their source unhighlighted. |
@dbaeumer In the hover provider basically don't mark something as code but just return plain text |
Actually I like having color in the hover. In Feb I will try to make a request to TS to better support this. |
Thanks 👍 |
Was too busy this milestone. Moving to march. |
Guess what :-) |
Please let me know if you are still seeing this for and js/ts code |
When I hover over functions I often see a nice hover similar to what the editor would show in terms of tokens and colors. But often I get no colors. What is the rule when a hover does show nice colors and when not?
@aeschli any ideas, is this your area?
To reproduce: open workbench.ts and hover over "registry" in line 200 and then over "Registry" later in that line. Only the first gets colors.
The text was updated successfully, but these errors were encountered: