-
Notifications
You must be signed in to change notification settings - Fork 182
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 references not working across the project but only on opened files #2396
Comments
LSP-eslint is a linter. It doesn't provide any references. If you meant to say LSP-typescript then provide a log from |
If you are talking about the Sublime Text This popup has nothing to do with LSP, it is a Sublime Text feature that can be turned of with LSP find references look like this: Feel free to explore the docs for LPS https://lsp.sublimetext.io/features/#find-references |
Thanks for that clarification! I should have known :/ Though it appears, the same issue happens when I find references via the LSP right-click menu as well as the Sublime Text hover references option. References are only checked if the file is open. Sounds like a Sublime error, might ask in the forums. |
This is the perfect place to ask questions about LSP :-) I do not quite know what exactly you are seeing, Also, do you have LSP-typescript installed? If yes, please see the message above |
Cool! Here is what I mean, and this is with using the right-click > lsp > find references option. I have also attached the LSP-typescript config log. Cheers. |
It all depends on the You should check for |
The thing is we are not using Typescript thus there is no tsconfig.json. Its a React project but just using js/jsx. Where would I configure the files' location in this case? Also, it's a big monorepo, if that matters. |
You were right! Got it working with the below jsconfig.json :) {
"include": ["shells/direct-shell/src/**/*"],
"exclude": ["node_modules", "**/node_modules/*"],
} Thanks for pointing me in the right direction. |
Describe the bug
Find references (panel that appears on hover over, say, an exported function, only finds references on open files rather than searching in the whole project
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Previously, it used to search the whole project and was very useful. Not sure when it started but might have been a few weeks/ or even months as I was wondering why references are not being found across the project.
Environment (please complete the following information):
Additional context
See attached config files:
LSP-eslint config.txt
The text was updated successfully, but these errors were encountered: