eclipse-archived / ceylon-ide-intellij

IntelliJ Plugin for Ceylon
Apache License 2.0
61 stars 17 forks source link

Find Usages in Projects and Libraries #256

Open gavinking opened 8 years ago

gavinking commented 8 years ago

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

bjansen commented 8 years ago

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

gavinking commented 8 years ago

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?

bjansen commented 8 years ago

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