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 fb0de8a commit 4064976Copy full SHA for 4064976
src/main/kotlin/com/emberjs/utils/EmberUtils.kt
@@ -862,9 +862,9 @@ class EmberUtils {
862
}
863
864
865
- if (cls is TypeScriptVariable) {
+ if (cls is TypeScriptVariable && cls.children.getOrNull(1) != null) {
866
jsTemplate = f.containingFile.viewProvider.findElementAt(cls.children[1].textOffset, JavaScriptSupportLoader.TYPESCRIPT)
867
- } else if (cls is JSVariable) {
+ } else if (cls is JSVariable && cls.children.getOrNull(1) != null) {
868
jsTemplate = f.containingFile.viewProvider.findElementAt(cls.children[1].textOffset, JavaScriptSupportLoader.ECMA_SCRIPT_6)
869
870
0 commit comments