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
Semantic colorization for quoted type annotations is inconsistent #5810
Comments
That seems incorrect to me too :) |
I disagree. The type var should be a different color to make it clear that it is a distinct identifier that supports, for example, go to def. I'm indifferent about the bracket coloring. |
Sorry not the TypeVar, the brackets. Especially in the string. It looks super weird. |
I see. The brackets are colored as string characters. I agree, that's weird. I'm not convinced that the brackets should be the same color as the type name though. |
Putting in triage so we can discuss. |
Decision was to provide semantic tokens for the brackets. That should make the colors consistent amongst the different ways to show a generic type. |
currently, according to "Developer: Inspect Editor Tokens and Scopes", all those so, we can either fix it from |
It seems to me that the "Box[T]" should be all one color. The root cause is no semantic value for the
[
in the type string.The text was updated successfully, but these errors were encountered: