I have a node.js project that includes the node-imap module. That module uses code like this to inherit from events.EventEmitter:
After the constructor:
and inside the constructor:
When I create an object of that class ".on" is found, which comes from EventEmitter.
I did EXACTLY THE SAME, I declared my own class with the above methods. And yet, when I enter
I get nothing!
Unfortunately it seems completely undocumented how WebStorm derives its information?
By the way, on the other hand the completion attempt gives me options like "return", "if", "throw", "typef" - WHAT??? Why does WebStorm think those Javacsript keywords make sense as object property suggestions? EDIT: Okay I get it, that inserts a code template. CTRL-SHIFT-SPACE only shows the properties WebStorm has found. Interestingly (but this is bad because it's unexpected, unexplained, confusing) when I try CTRL-SHIFT-SPACE with the node-imap object I DO NOT get "on" and "once" and other inherited methods, but I do get them with CTRL-SPACE - which means there is no autocompletion method that gives me only object properties (and all of them).
PS: I'm really curious, thus far I have never received any reply at all to whatever I ask. There doesn't seem to be much of a community for this product even though in discussions about "which IDE" it is always mentioned first. I don't get it, the functions that make it unique as an IDE are BUGGY as hell and I find myself filing bug report after bug report on https://youtrack.jetbrains.com/
And why doesn't this comment editor not let me easily declare something "code"? Do I have to scroll through the long font list to select monospaced? There is an "Insert video" button though, I'm sure that's important. After all, compared to inserting video links, how many people would want to post code in these forums? /s