Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/main/kotlin/com/emberjs/utils/EmberUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down
Loading