Open aclement opened 11 years ago
sLogger
is passed into the function as a parameter and it is not coming through as a module. So, we are not really inferring the real scriptedLogger. We are only inferring that the reference to info
is the same reference as used above. So, you are just navigated to the first known use of info
.
I think we can do better here by being dumber.
info
is not really a declaration, but a useinfo
.info
corresponds to the use of info
where you press ctrl+click, it's actually a pretty good guess. And we should just go there.The only wrinkle that I can see here is that currently, the only way that we can find the actual definition is if the scriptedLogger is transitively depended on by the current file, and if it's not, then I don't know how to find it.
I thought this was moving to the new editor but it seems to happen on master. Open something like scripted.js, line 100 there is an 'info' call:
now ctrl+click on info, it takes you to the info further up the page...rather than the declaration? What is it doing? Am I doing something wrong? I've seen it in other places in the codebase too.