Support jump-to-definition #1764
Labels
C-Low Hanging Fruit
Ideal issue for new contributors.
L-Language Server
Issues relating to the LSP implementation that talks to editors.
S-Nice to have
The bug fix or feature would be nice but doesn't currently have much negative impact.
Z-Feature
A new feature to be added to the game.
Z-User Experience
This issue seeks to make the game more enjoyable to play.
Is your feature request related to a problem? Please describe.
I have emacs configured so that
Alt-.
jumps to the definition of the name under the cursor. It would be cool if this worked in Swarm too.Describe the solution you'd like
Specifically, I'd like the LSP server to support the
textDocument/definition
capability, see https://microsoft.github.io/language-server-protocol/specifications/specification-3-14/#textDocument_definition . Since we already keep track of position information while parsing, I imagine this should not be all that hard, although there very likely may be difficulties I don't know about.The text was updated successfully, but these errors were encountered: