We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfcc4ea commit 62865d9Copy full SHA for 62865d9
src/main/kotlin/com/emberjs/hbs/HbsLocalCompletion.kt
@@ -154,7 +154,7 @@ class HbsLocalCompletion : CompletionProvider<CompletionParameters>() {
154
}
155
156
fun addHelperCompletions(element: PsiElement, result: CompletionResultSet) {
157
- val file = EmberUtils.followReferences(element.children[0])
+ val file = EmberUtils.followReferences(element.children.firstOrNull())
158
var func: JSFunction? = null
159
if (file is JSFunction) {
160
func = file
0 commit comments