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

Find references across packages #11

Open
pwaller opened this issue Nov 12, 2018 · 2 comments
Open

Find references across packages #11

pwaller opened this issue Nov 12, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@pwaller
Copy link

pwaller commented Nov 12, 2018

Hi again!

A feature request, or a confused user request :)

The project I'm looking at has a structure like:

MyProjectFoo/MyProjectFoo.cabal
MyProjectFoo/bar/bar.cabal

I've indexed these separately, and loaded them all into one server instance. If I'm looking at MyProjectFoo, then it finds references to symbols defined in bar.

However, if I'm looking at a symbol in bar and find all references to that symbol, it only seems to find those in bar (and not references coming from the top level project MyProjectFoo).

My goal is to be able to look at a symbol defined in bar and discover the references in other projects. Is this possible?

Thanks!

@alexwl
Copy link
Owner

alexwl commented Nov 12, 2018

Currently, the "find references" feature works only inside one package (unlike "go to definition").

Cross-package "find references" is definitely useful and it's quite easy to implement (there's no need to modify the code that uses GHC API).

I will work on it this week.

@alexwl alexwl self-assigned this Nov 12, 2018
@alexwl alexwl added the enhancement New feature or request label Nov 12, 2018
@alexwl
Copy link
Owner

alexwl commented Nov 16, 2018

Cross-package "find references" is in master. Public server https://haskell-code-explorer.mfix.io now supports this feature.

You just need to update and restart haskell-code-server (there's no need to reindex packages) to be able to find references across packages.

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

No branches or pull requests

2 participants