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

Implement Go To Type Definition #717

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lekemula
Copy link

@lekemula lekemula commented May 27, 2024

https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_typeDefinition

Demo in VScode (since in VIM everything is too fast 🤪)
solargraph_go_to_type_definition

All the necessary pieces were in place, and nothing fancy changed, mostly just exposing the functionality for LanguageServer. Almost feels like an easter egg for a new contributor like me 😄.

The only "functionality" added is ComplexType#namespaces which also utilizes existing implementation.

@@ -630,6 +639,7 @@ def default_configuration
'hover' => true,
'symbols' => true,
'definitions' => true,
'typeDefinitions' => true,
Copy link
Author

@lekemula lekemula May 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this config should be added to the IDE plugins too?

https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_typeDefinition

All the necessary pieces were in place, nothing fancy changed,
mostly just exposing the functionality for LanguageServer.

The only "functionality" added is `ComplexType#namespaces` which also
utilizes existing implementation.
@lekemula lekemula force-pushed the go-to-type-definition branch from 14a17c5 to cfa126d Compare May 27, 2024 15:39
@lekemula
Copy link
Author

lekemula commented Nov 6, 2024

Hey @castwide, any chance that we could move forward here? I believe this is a very useful low-hanging fruit that could be quite helpful in navigating the codebase.

Looking forward to your suggestions on improving the proposed changes.

Also would be nice if you could also take a look at some other PRs of mine, some of which are a few months old now. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant