Fix 'Find symbol' and 'Go to declaration' when jar is used in many libs

SourceNavigationHelper takes into account all the module infos
    that given virtual file is a part of

 #KT-15093 Fixed
This commit is contained in:
Pavel V. Talanov
2017-06-08 16:33:52 +03:00
parent 6eb4addb6e
commit 46512f34e4
3 changed files with 57 additions and 32 deletions
@@ -32,7 +32,7 @@ abstract class KtLightElementBase(private val parent: PsiElement): LightElement(
override fun getText() = kotlinOrigin?.text ?: ""
override fun getTextRange() = kotlinOrigin?.textRange ?: TextRange.EMPTY_RANGE
override fun isWritable() = kotlinOrigin?.isWritable ?: false
override fun getNavigationElement() = kotlinOrigin ?: this
override fun getNavigationElement() = kotlinOrigin?.navigationElement ?: this
override fun getUseScope() = kotlinOrigin?.useScope ?: super.getUseScope()
override fun getContainingFile() = parent.containingFile
override fun getPresentation() = (kotlinOrigin ?: this).let { ItemPresentationProviders.getItemPresentation(it) }