Open lucaferranti opened 2 months ago
Thank you for reporting!
It's definitely possible using LSP, and is more of a limitation with the language server / compiler frontend. Currently, we don't keep a list of all identifiers that matched when looking up functions. What would be needed is to plumb such a list through, somehow -- which definitely seem plausible.
If I have an overloaded function like
when I query for the definition of
f
in the function call above, the language server doesn't do anything (note that if I remove the second function def it works).Instead, it would be nice to return the list of definitions and let the user choose which one to go to. I see editors support this in other programming languages, so I would guess this is somehow possible with the LSP protocol (but haven't check). In the picture below, an example of how it is for Julia