The find-references feature doesn't seem to work right out of the box. What's needed to make this feature work?
The fundamental piece is that given a project you need to know the set of roots so you can determine where references could lie. I've got a design for that (and the implementation is trivial) so once a few other patches land I was going to make the modifications. Once that is done, find references should be possible.
Any news on the pieces that we would need for this @ndmitchell? When you say the set of roots would just the list of files that are loaded in ghcide be enough?
@meditans We are making progress towards this issue certainly. One issue to overcome is that you really don't want to keep a lot of every information about every module in memory as it causes too much memory usage so creating an out of memory cache is important.
Thanks @mpickering, I just read the weekly update and went back to check this issue. You're doing an amazing job in helping the ide infrastructure moving forward!
Maybe related with "goto reference": https://github.com/haskell/haskell-language-server/issues/211
It seems the commits referencing this issue are not related.
This should be fixed by #898
Most helpful comment
The fundamental piece is that given a project you need to know the set of roots so you can determine where references could lie. I've got a design for that (and the implementation is trivial) so once a few other patches land I was going to make the modifications. Once that is done, find references should be possible.