Description
Jump to declaration goes to incorrect files in another folder in workspace when using multiple files with same file and method names.
VSCode Version: 1.25.1
OS Version: 10.13.6 OSX
Steps to Reproduce:
While setting this up for you I realized you don't even need a workspace for this issue. Just two folders does the trick.
Step 1 create a folder vscodebug
Step 2 open in vscode the folder with my github repo in it
https://github.com/jasonbronson/BugVSCode
Step 3 open up posts.php under this folder in editor
/pcentral/wp-content/themes/theme1/libraries/posts.php
Step 4 close the posts.php file
Step 5 open up pressreleases.php file under
/pmasters/wp-content/themes/theme2/libraries/pressreleases.php
Step 6 Highlight "Posts" under Pressrelease extends Posts
Step 7 hit go to declaration
Step 8 notice it jumps to the top folder with that file.
I believe if you're in a folder the top level would be all that it should be searching for not going to other folders.
Example I open up top folder 1 to copy some code into the library file I'm building into folder2 now this bug occurs.