提交 da5f2a07 编写于 作者: N Nikolay Krasko

Always return identifier from handleElementRename() (KT-14358)

Returning reference will lead to replacing identifier with reference, that result bad psi, bad stubs, and failure at some point.

 #KT-14358 Fixed
上级 8a49a017
......@@ -49,9 +49,9 @@ class AndroidSimpleNameReferenceExtension : SimpleNameReferenceExtension {
}
else if (isLayoutPackageIdentifier(reference)) {
return if (newElementName.endsWith(".xml"))
psiFactory.createSimpleName(newElementName.dropLast(".xml".length))
psiFactory.createSimpleName(newElementName.dropLast(".xml".length)).getIdentifier()
else
reference.element
reference.element.getIdentifier()
}
return null
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册