React quick documentation missing
I'm running latest WebStorm 2018.1.3 and frankly, I feel a bit disappointed for the misbehavior of quick documentation feature, especially with the react library. VSCode looks a lot more helpful. Now, I read this, and checked out this also, and I thought this issue was fixed. However, as of today, it doesn't look so.
I was extremely sorry to read how @Ekaterina Prigara was obnoxiously treated and I really dislike to bring this issue back up again, but I would be extremely grateful for some help in this respect.
I read WebStorm documentation but I was not successful attaching the library file nor adding external url documentation, and to be honest it seems like a lot of work, especially to do on a project by project basis.
How can I open a react project and display library documentation for... let's say `componentDidMount` method? I can't manage to do that.
Please sign in to leave a comment.
In WebStorm, quick documentation popup shows docs attached to current method. For implemented/overridden methods, it doesn't show information from the superclass/interface unless you annotate inherited method with @inheritDoc JSDoc tag. That's why you see nothing for componentDidMount
I've created a feature request for showing inherited docs in quick doc popup, https://youtrack.jetbrains.com/issue/WEB-32772. Please feel free to vote for it
Many thanks, Elena! Looking forward to a fix :) Do you please have suggestions to implement a workaround in the meantime? I mean, something more practical than adding the following at each method (which indeed works by the way):
No other workarounds I can think of, sorry:( You can try Navigate | Super method to jump to method declaration and see the docs attached to it...
Oh wow... that's what I call being resourceful ^_^ Still not practical enough, but pretty smart Elena, thanks!
Looking forward for a proper fix :)