Skip to content

Commit 73f6dac

Browse files
niktropdmitry.naydanov
authored and
dmitry.naydanov
committed
Show class names in "Go to inheritors" action for values
#SCL-11860 fixed
1 parent 23c4ec8 commit 73f6dac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/org/jetbrains/plugins/scala/lang/psi/api/toplevel/ScNamedElement.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ trait ScNamedElement extends ScalaPsiElement with PsiNameIdentifierOwner with Na
6868

6969
override def getPresentation: ItemPresentation = {
7070
val clazz: ScTemplateDefinition =
71-
getParent match {
71+
nameContext.getParent match {
7272
case _: ScTemplateBody | _: ScEarlyDefinitions =>
7373
PsiTreeUtil.getParentOfType(this, classOf[ScTemplateDefinition], true)
7474
case _ if this.isInstanceOf[ScClassParameter] =>
@@ -107,4 +107,4 @@ trait ScNamedElement extends ScalaPsiElement with PsiNameIdentifierOwner with Na
107107
case _ => None
108108
})
109109
}
110-
}
110+
}

0 commit comments

Comments
 (0)