-
Notifications
You must be signed in to change notification settings - Fork 771
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
Type 'None' not getting colorization properly #1039
Comments
Thanks for the report. This looks like a bug and we will investigate. thanks! |
Would it be possible to get the vertical bar and brackets to also turn white? |
We tokenize names, and then leave the other tokens up to the editor to color (in this case, they get the string literal color). What you're calling "white" is actually just the "unknown" token type when shown in regular code, i.e. what you get if you just open a new file with no language and start typing. Changing that behavior would be a separate enhancement we could consider, as we've designed it to work the current way (versus |
Ah cool, thanks for explaining! |
The next release adds a new token for the builtin constants |
This issue has been fixed in version 2021.7.0, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202190-1-september-2021 |
Environment data
basic
2021.3.2-pre.1
Windows 10 Pro Insider Preview Build 21313
3.8.7 64-bit
Expected behaviour
Expected type
'None'
to still be colored blue despite the single quotes.Actual behaviour
'None'
gets colored as a string and the same goes for the vertical bar that separates types.The text was updated successfully, but these errors were encountered: