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

Go to definition for dependencies #664

Closed
KristianBalaj opened this issue Aug 4, 2022 · 1 comment
Closed

Go to definition for dependencies #664

KristianBalaj opened this issue Aug 4, 2022 · 1 comment
Labels

Comments

@KristianBalaj
Copy link

Go to definition is a useful feature. However, it works only for project's code. I would love to be able to go to definition for code that belongs to dependencies (either it is for the base or any other dependency that is used in the project).

Example usage

I have code in my project that uses the function max from base. When I try to go to defintion of the max function, I get the the right code file where it is defined. Next, I can go to other definitions even in that file etc.

Example from other ecosystem

One example where I'm aware of this feature is Dart programming language (Flutter), it has all the code files downloaded in the project's directory (gitignored). It downloads all these code files once pub get command is run (pub can be understood as cabal in haskell world. pub get is also run automatically when build happens etc.).
And when trying to go to definition, it goes to the correct line to one of the relevant downloaded files present at the project's directory.

I'm curious whether there is some ongoing work that could help achieving this feature. Not sure whether this is relevant to this project, but I believe that you could point me to the right issues/projects in case it's not.

@hasufell
Copy link
Member

hasufell commented Aug 5, 2022

Duplicate of haskell/haskell-language-server#708

This isn't in scope of the extension. The server provides these capabilities.

@hasufell hasufell closed this as not planned Won't fix, can't repro, duplicate, stale Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants