sorry, file cannot look like that when the default export is a single object/function/etc. you can also make a static analysis of the files, based on default exports
-
-
Replying to @dev01ution
How does the exports.default block in your etc/app file look like?
1 reply 0 retweets 0 likes -
-
Replying to @dev01ution @WebStormIDE
btw, I don't need a suggestion based on the contents of the app.js file, I need it by the way I've chosen to use it in the project. what if I want to use: const xp = require('express'); everywhere?
1 reply 0 retweets 0 likes -
Replying to @dev01ution @WebStormIDE
you can see I've used the FS variable multiple times, so you know how to suggest fields of it, but somehow just can't find where to require it from... it's just counting, I know, but if you can count variable names, maybe you can count where ther values've been required from O.opic.twitter.com/87cVRIEShh
1 reply 0 retweets 0 likes -
Replying to @dev01ution
Can you please show then how FS in /etc/fields is defined? On the attached screenshots we can't see the file names. Is it `module.exports = fs`? Thanks!
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE
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?
1 reply 0 retweets 0 likes -
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
This logic of matching by the name works only for the modules in the node_modules folder and listed as a dependency in package.json.
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.