Cannot view comments / params when using anon function expression with IIFE

I was using VS 2015 when I was writing code on Windows, but now that I'm back on OSX and using WebStorm, I noticed tha I do not have comments or params appearing when autocomplete appears in WebStorm.

I'm using anonymous functions expressions within an IIFE. Do you think that could be contributing to it?


Here's an example on Pastebin: http://pastebin.com/xCjEnzUm

2 comments
Comment actions Permalink

Works for me (WebStorm 10.0.4) - see attached screenshot

params.png
Note that no types are displayed in parameters info when using your code - just names. This happens because of '-' between type and name in your JSDoc comments. WebStorm treats the first word after type in @param as parameter name. If it doesn't match with actual name specified in code, it can't map annotations to code.

0
Comment actions Permalink

"Note that no types are displayed in parameters info when using your code - just names. This happens because of '-' between type and name in your JSDoc comments. WebStorm treats the first word after type in @param as parameter name. If it doesn't match with actual name specified in code, it can't map annotations to code."

Ah, I didn't realize that! I'll make changes to the way I enter @param comments. Thanks!

I'll dive into my project a bit more and try to figure out why the annotations are not appearing. Thank you for following up with this!  

0

Please sign in to leave a comment.