don't check intention availability on PsiFile (EA-85587 - assert: SharedPsiElementImplUtil.getChildIndex)
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ abstract class SelfTargetingIntention<TElement : PsiElement>(
|
|||||||
if (leaf2 != null) {
|
if (leaf2 != null) {
|
||||||
elementsToCheck += leaf2.parentsWithSelf.takeWhile { it != commonParent }
|
elementsToCheck += leaf2.parentsWithSelf.takeWhile { it != commonParent }
|
||||||
}
|
}
|
||||||
if (commonParent != null) {
|
if (commonParent != null && commonParent !is PsiFile) {
|
||||||
elementsToCheck += commonParent.parentsWithSelf
|
elementsToCheck += commonParent.parentsWithSelf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user