Open gavinking opened 8 years ago
@bjansen Could it be that the only thing we need to do here is fix DeclarationPsiNameIdOwner.getUseScope()
, which is surely wrong for declarations in binary archives?
Don't know, I haven't looked at the problem yet.
Definitely part of it. With @5b7fcd4 I can now obtain usage results from inside binary archives, as long as I "prime" the archives for the search by running a Navigate > Implementations first. This is needed due to lazy model loading.
So where can we hook into stuff in order to "prime" stuff automatically? Is there some even that occurs just before a Usage search runs?
Since the model is now attached asynchronously to external CeylonFile
s, you'll have to ask @davidfestal how/if what you want is possible.
Currently, Find Usages only supports finding usages in project source, not usages in module dependencies. IntelliJ's Find Usages view has the option to select 'Projects and Libraries', which we need to support.