Skip to content
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

fix(lsp): incoming/outgoing_call range locations #2985

Merged

Conversation

jamestrew
Copy link
Contributor

Previous implementation uses the incorrect lsp result fields for generating call site locations resulting in incomplete and incorrect results.

closes #2939

Previous implementation uses the incorrect lsp result fields for
generating call site locations resulting in incomplete and incorrect
results.
@jamestrew jamestrew added the backport-0.1.x PR to be backported to 0.1.x (Neovim 0.7 compat) label Mar 14, 2024
@Conni2461
Copy link
Member

this did work previously, so it might be related to the neovim version?! so not sure regarding to the backport

@jamestrew
Copy link
Contributor Author

jamestrew commented Mar 14, 2024

I looked at the neovim lsp handler for call_hierarchy and it hasn't changed since 2020 and my fix is identical to it.
https://github.com/neovim/neovim/blob/a6b6d036b19a548e3f2a199c6927ac7495c02ea1/runtime/lua/vim/lsp/handlers.lua#L545-L556

I'll double check on neovim 0.7 but I think it should be safe to backport.
Edit: It's definitely still broken on neovim 0.7. But vim.lsp.buf.incoming_calls functions as expected.

@tristan957
Copy link

I really appreciate you taking a look at this issue :).

@jamestrew jamestrew merged commit 8cd58c6 into nvim-telescope:master Mar 18, 2024
6 checks passed
@jamestrew jamestrew deleted the fix/lsp-incoming-outgoing-calls branch March 18, 2024 01:10
Conni2461 pushed a commit that referenced this pull request May 20, 2024
Previous implementation uses the incorrect lsp result fields for
generating call site locations resulting in incomplete and incorrect
results.

(cherry picked from commit 8cd58c6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-0.1.x PR to be backported to 0.1.x (Neovim 0.7 compat)
Projects
None yet
3 participants