-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find all references doesn't work on closed files #52127
Comments
(Experimental duplicate detection)
|
|
JavaScript, no extensions. |
Do you have a |
hmm, when i add a jsconfig.json it stops finding references even in opened files |
Please share a minimal code example or small example project |
Hey, I've done some checking and found out that it only happens if you search for references of a variable defined in a .jsx file. Unfortunately, I couldn't find how to configure the project to allow VS Code to enable it. To reproduce this you can just create two files as following: file1.jsx: file2.jsx: Then if you search for references of 'a' from file1.jsx you'll get different results depending on whether you have or don't have a jsconfig.json. If you don't have it you'll only see the reference of 'a' in file2.jsx if it's opened in the editor. If you have a jsconfig.json, you won't see the reference regardless of the file being opened in the editor or not. |
In your jsconfig.json, make sure you set |
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: