-
Notifications
You must be signed in to change notification settings - Fork 179
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
textDocument/references Overreporting when class has multiple definitions in Neovim #3088
Comments
Thanks for the report. If you turn on server tracing, you can verify what the LSP is returning back to the editor for the {
"ruby lsp.trace.server": "verbose"
} If we're indeed returning more than one result for the same occurrence, then it's a bug in our implementation. |
Hi @vinistock thanks for the guidance, this is what I'm seeing in the response from the LSP:
I see the users_controller reference three times, is this what you were referring to? |
Yes, indeed. It seems we're indeed returning duplicates if that's what you're seeing in the trace. The relevant implementation is in our reference finder. I would start by writing a test that reproduces that example and then we can check what's going wrong in the implementation. |
sounds good, I will get started on it. Thanks! |
Description
Hi!
I noticed the following while I was working on a Ruby on Rails project that has classes that are re-opened on different parts of the codebase.
Something along the lines of:
if I trigger the
textDocument/references
action while hovering onUser
I see the results twice for the reference inusers_controller.rb
. I also confirmed that this doesn't happen in VSCode.I would like to help solving the issue once it is confirmed I would just need some guidance.
Thanks!
The text was updated successfully, but these errors were encountered: