Plugin verifications problem with TypeScriptFileType

I have a plugin that depends on the JavaScript plugin. When setting the pluginUntilBuild of my plugin to 252.* i get compatibility problems against IU-251.23774.200

#Access to unresolved field com.intellij.lang.javascript.TypeScriptFileType.INSTANCE : LanguageFileType

I am currently using the plugin template. When i change pluginUntilBuild to 243.* i dont not have this issue.

For now i just avoid this issue by using file.fileType is TypeScriptFileType instead of a DefaultFileTypeSpecificInputFilter and supplying the TypeScriptFileType.INSTANCE. Im not sure what the proper way is now to get the instance.

Fine check in Kotlin for platform 251.* and higher:

file.fileType === TypeScriptFileType

TypeScriptFileType is Kotlin object since version 251.

2 Likes