Let's say I have the following situation
/dir1/file1.js
/dir1/file2.js <--- link()
/dir2/file3.js <--- link()
Let's say now that I' working in file1.js and I do a ctrl + B on link() to go to the declaration of the function link.
Right now I get a popup menu with a list of option. I don't know which order it follows but I don't like it because I don't know which link() function to choose.
I think that the first option (the one on the top) should be the link() function that is in the same directory that I'm working on (dir1). I think that's pretty logic.
I hope that you'll find my argument logic too and implement it.