Skip to content

Commit 014b75b

Browse files
authored
fix gts typescript detection (#269)
1 parent 25c44f7 commit 014b75b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/kotlin/com/emberjs/gts/GtsSupport.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ val JS: JSLanguageDialect = JavaScriptSupportLoader.ECMA_SCRIPT_6
9595

9696

9797

98-
open class GtsLanguage(val lang: JSLanguageDialect = TS, id: String ="Gts") : Language(lang, id) {
98+
open class GtsLanguage(val lang: JSLanguageDialect = TS, id: String ="Gts") : JSLanguageDialect(id, lang.optionHolder, lang) {
9999
public var fileElementType: JSFileElementType? = null
100100

101101
override fun <T : Any?> getUserData(key: Key<T>): T? {
@@ -394,9 +394,6 @@ class GtsFileType : LanguageFileType(GtsLanguage.INSTANCE) {
394394
if (other == TypeScriptFileType) {
395395
return true
396396
}
397-
if (other == JavaScriptFileType) {
398-
return true
399-
}
400397
return super.equals(other)
401398
}
402399

0 commit comments

Comments
 (0)