diff --git a/src/main/kotlin/com/emberjs/utils/EmberUtils.kt b/src/main/kotlin/com/emberjs/utils/EmberUtils.kt index 9c28bb5f..58cedd83 100644 --- a/src/main/kotlin/com/emberjs/utils/EmberUtils.kt +++ b/src/main/kotlin/com/emberjs/utils/EmberUtils.kt @@ -25,6 +25,7 @@ import com.intellij.application.options.CodeStyle import com.intellij.framework.detection.impl.FrameworkDetectionManager import com.intellij.injected.editor.VirtualFileWindow import com.intellij.lang.Language +import com.intellij.lang.ecmascript6.psi.ES6ExportDefaultAssignment import com.intellij.lang.ecmascript6.psi.ES6ExportSpecifierAlias import com.intellij.lang.ecmascript6.psi.ES6ImportExportDeclaration import com.intellij.lang.ecmascript6.psi.ES6ImportSpecifier @@ -347,6 +348,10 @@ class EmberUtils { return followReferences(element.parent.reference?.resolve()) } + if (element is ES6ExportDefaultAssignment) { + return element.namedElement + } + if (element is ES6ImportedBinding) { val res = element.multiResolve(true).firstOrNull() if (res != null && res.element != null) {