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:
+1
-1
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user