Pure-D / serve-d

D LSP server (dlang language server protocol server)
MIT License
200 stars 48 forks source link

want textDocument/references.... #261

Closed gdamore closed 1 year ago

gdamore commented 1 year ago

While trying to this with Helix editor, I find that while I can often navigate from a call site to a definition, I cannot go from a definition to references -- this is a super useful capability that I've used in numerous different editors in the past (e.g. IntelliJ, even VSC) -- the ability to find call sites for a function or symbol references.

I realize with D the problem is "hard" (because mixins, traits, and templates -- although templates are probably easier than the other two to deal with), but at least we could try to resolve for the easier cases.

The error that the editor shows is "Async job failed: protocol error: MethodNotFound: Request method textDocument/references not found".

I guess this is part of the LSP spec that is missing.

WebFreak001 commented 1 year ago

fixed in master, improvements will come in the future