Hint Blacklist is ignored in tsx files?

I have a freshly installed vanilla Webstorm.

 

I use React with Typescript, hence the tsx files.

 

In my tsx files the Hints are not blacklistet, e.g. "setValue" shows a "value:" hint in the tsx files (works fine in regular ts files).

4 comments

This definitely works in .tsx. Did you try hiding the hint using Disable hints for method xxx right-click menu action?

0

Hmm..the default wildcards blacklist does not seem to work. 

E.g. when I manually add Array.map(... then it is blacklisted, but the default *.map(*) does not seem to work.

Could this be?

0

default filters work equally well for me in both .ts and .tsx files. Please share a code snippet (self-containing) that can be used to recreate the issue

0

I am sorry. You are so right.

 
The .map and .setState methods I tested had an optional callback parameter. And one seems to have to add a wildcard for each parameter.
So e.g. the blacklist wildcard *.set*(*,*) works for Reacts setState().
 
Thank you!
1

Please sign in to leave a comment.