UI: Show file name instead of text fragment in element selection popup
This commit is contained in:
@@ -338,6 +338,7 @@ public fun chooseContainerElement<T>(
|
|||||||
|
|
||||||
private fun PsiElement.renderDeclaration(): String? {
|
private fun PsiElement.renderDeclaration(): String? {
|
||||||
val descriptor = when {
|
val descriptor = when {
|
||||||
|
this is JetFile -> getName()
|
||||||
this is JetElement -> analyze()[BindingContext.DECLARATION_TO_DESCRIPTOR, this]
|
this is JetElement -> analyze()[BindingContext.DECLARATION_TO_DESCRIPTOR, this]
|
||||||
this is PsiMember -> getJavaMemberDescriptor()
|
this is PsiMember -> getJavaMemberDescriptor()
|
||||||
else -> null
|
else -> null
|
||||||
|
|||||||
Reference in New Issue
Block a user