ceylon-ide-intellij icon indicating copy to clipboard operation
ceylon-ide-intellij copied to clipboard

Find Usages in Projects and Libraries

Open gavinking opened this issue 9 years ago • 4 comments

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.

gavinking avatar Jun 07 '16 20:06 gavinking

@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?

gavinking avatar Jun 28 '16 10:06 gavinking

Don't know, I haven't looked at the problem yet.

bjansen avatar Jun 28 '16 10:06 bjansen

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?

gavinking avatar Jun 28 '16 11:06 gavinking

Since the model is now attached asynchronously to external CeylonFiles, you'll have to ask @davidfestal how/if what you want is possible.

bjansen avatar Jun 28 '16 11:06 bjansen