Closed danihodovic closed 9 years ago
Also,
If module.exports are defined using the shorthand literal, tern can't find the original function even after calling :TernDef
function foo() {}
module.exports = {
foo // :TernDef here won't take me to foo
}
Nope, this isn't possible. Tern will take you to where the property you are looking at is defined. This is usually the right place, but as you found, sometimes it isn't optimal. Still, I am not aware of a good way to distinguish between these two types of situations.
If I have a file structure as such:
File foo.js
File bar.js
Is it possible to go to the source function declaration instead of module.exports?