Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions src/main/kotlin/com/emberjs/hbs/HbsLocalCompletion.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import com.intellij.psi.util.PsiTreeUtil
import com.intellij.psi.util.elementType
import com.intellij.psi.util.isAncestor
import com.intellij.psi.xml.XmlAttribute
import com.intellij.psi.xml.XmlTag
import com.intellij.refactoring.suggested.startOffset
import com.intellij.util.ProcessingContext
import java.util.function.Predicate
Expand Down Expand Up @@ -434,6 +435,9 @@ class HbsLocalCompletion : CompletionProvider<CompletionParameters>() {
}
return
}
if (element.parent is XmlTag) {
return
}
}

val result: MutableList<LookupElement> = mutableListOf()
Expand Down
4 changes: 4 additions & 0 deletions src/main/kotlin/com/emberjs/utils/EmberUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,10 @@ class EmberUtils {
return followReferences(elem)
}

if (element is TypeScriptTypeofType) {
return followReferences(element.expression?.reference?.resolve())
}

if (element is ES6ImportSpecifier) {
val results = element.multiResolve(false)
val internal = (element.parent.parent as ES6ImportDeclarationImpl).fromClause?.references?.find { it is EmberInternalJSModuleReference } as? EmberInternalJSModuleReference
Expand Down
Loading