Can you please give me an answer that doesn't depend on how an object or function is defined, but how it is being used?
-
-
Replying to @dev01ution
If the question is whether WebStorm provides code completion based on the number of usages of a particular line of code, the answer is no. It has to resolve the symbol and for that we need to see how it’s defined.
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE
It should. And my question was also about Express. How do I make that?
1 reply 0 retweets 0 likes -
Replying to @dev01ution @WebStormIDE
How can I make “matches the module name” so I can have a suggestion for const xp = require(‘express’); or any file formthat matter const whateverIdecide = require(‘../the/module/I/wrote’); ?pic.twitter.com/jmC9yFMGTA
2 replies 0 retweets 0 likes -
Replying to @dev01ution
We've created an issue: https://youtrack.jetbrains.com/issue/WEB-39394 If it's similar to your case, please vote for it and follow it for the updates.
1 reply 0 retweets 1 like -
Replying to @WebStormIDE
it is not. my use case is anonymous functions or objects. module.exports = {}; module.exports = () => {}; the whole point is to not let the definition define the name other modules choose to use.
1 reply 0 retweets 0 likes -
Replying to @dev01ution @WebStormIDE
another problem is there aren't autocomplete field suggestions for: module.exports = Object.freeze({ a:1, b:2 }) like there are for: module.exports = { a:1, b:2 }; Object.freeze(module.exports);
1 reply 0 retweets 0 likes -
Replying to @dev01ution
Sorry, can't reproduce that in WebStorm 2019.1.3. What IDE version do you use?pic.twitter.com/8mpjj6mP1A
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE @dev01ution
That was fixed in WebStorm 2019.1: https://youtrack.jetbrains.com/issue/WEB-34225
2 replies 0 retweets 0 likes -
Replying to @WebStormIDE
you still have a problempic.twitter.com/6Ru8KbmIIC
1 reply 0 retweets 0 likes
Please follow the issue: https://youtrack.jetbrains.com/issue/WEB-39441
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.