-
Notifications
You must be signed in to change notification settings - Fork 129
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
Bad syntax Highlighting in TS when using multiline union types #1043
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.95.3. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
It's not just |
Here is another example, if needed. The first
This is the result in Monokai. Notice how the keywords In some themes there are further issues; in One Monokai, notice the |
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
Write the following in VSCode
The syntax of
function myFunc() {}
and everything after it is broken.I found that it happens only in this rare edge case. Some things that actually fix it:
Bad highlighting:
Wanted highlighting:
The text was updated successfully, but these errors were encountered: