Skip to content

Commit 4032957

Browse files
authored
fix renaming reference
1 parent f8ef996 commit 4032957

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/kotlin/com/emberjs/hbs/HbsLocalReference.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,10 @@ class HbsLocalReference(private val leaf: PsiElement, val target: PsiElement?) :
365365
return HbsLocalRenameReference(element, importRef)
366366
}
367367

368+
if (element.parent is HbOpenBlockMustache && element.parent.children[0] != element) {
369+
return HbsLocalRenameReference(element, element)
370+
}
371+
368372
return referenceBlocks(element, name) ?:
369373
resolveToLocalJs(element)
370374
}

0 commit comments

Comments
 (0)