-
-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Highlighting error not using parentheses inside an if condition #418
Comments
Can you paste an example as text? |
sure, I will paste the head of the function together with the scoped validation function where code starts to break the highlight. Starts here:
Strange but this same code does not break the highlight inside a functional react component.
|
Looks like the problem is that the I'll take a look. There may be a similar bug in the core TypeScript definition as well. |
wow looks bigger than i thought... if you need help with some other test let me know ok. Thanks |
In this particular case, which uses the I might come up with a clean solution, and if that fails I'll probably implement a dirty one, but I'd use parens there in the meantime. |
Should be fixed in v11.1.1. It's the hacky fix, not a clean one, but it should do the right thing in most cases and it shouldn't make anything worse. |
Although it is not a clean solution, it is a welcome help! Thank's |
Hi there, I am sorry to say that but maybe we got a little bug within this release:
When not using the parenthesis inside this if condition:
When using it, things go fine:
Thank's for helping.
The text was updated successfully, but these errors were encountered: