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

Support jump-to-definition #1764

Open
byorgey opened this issue Feb 12, 2024 · 0 comments
Open

Support jump-to-definition #1764

byorgey opened this issue Feb 12, 2024 · 0 comments
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.

Comments

@byorgey
Copy link
Member

byorgey commented Feb 12, 2024

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.

@byorgey byorgey added Z-User Experience This issue seeks to make the game more enjoyable to play. Z-Feature A new feature to be added to the game. C-Low Hanging Fruit Ideal issue for new contributors. S-Nice to have The bug fix or feature would be nice but doesn't currently have much negative impact. L-Language Server Issues relating to the LSP implementation that talks to editors. labels Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant