-
Notifications
You must be signed in to change notification settings - Fork 767
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 Highlighting issues with Type Hints for Generic Types #459
Comments
Thanks for the report. We should be able to fix those. |
This issue has been fixed in version 2020.10.0, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/master/CHANGELOG.md#2020100-7-october-2020 |
Thank you, I just updated and the problem is fixed. For reference, these are the colors customizations I'm experimenting right now with the Amethyst Dark theme: |
Environment data
Expected behaviour
Given this function definition:
The entire
List[int]
span should have thetypeHint
semantic modifier.Actual behaviour
(note: I've overridden the token color for
![image](https://user-images.githubusercontent.com/1431770/95121141-ea056e00-074e-11eb-9c77-92a751bea20b.png)
*.typeHint
to red for clarity)List
gets thevariable
semantic without thetypeHint
modifier.The square brackets don't get any semantic token or modifier.
Edit: It seems like these issues happen on class variable annotations too, not just in function argument annotations.
Code Snippet / Additional information
Related Feature Request: #335
The text was updated successfully, but these errors were encountered: