Disable language injection for SpEL language as it cause to many troubles

It's known that there're several inspections that report warnings when
SpEL language is injected not to Java files if IDEA is before 173.
This commit is contained in:
Nikolay Krasko
2017-12-04 18:35:05 +03:00
parent 6f350c032d
commit fba50a8d15
@@ -319,6 +319,10 @@ class KotlinLanguageInjector(
(argument.reference ?: argument.getArgumentName()?.referenceExpression?.mainReference)
?.let { it.resolve() as? PsiMethod }
?.let { findInjection(it, Configuration.getInstance().getInjections(JavaLanguageInjectionSupport.JAVA_SUPPORT_ID)) }
?.takeIf { injectionInfo ->
// Temporary forbid injection for SpEL because of inspections that gives warnings when host language is not Java.
injectionInfo.languageId != "SpEL"
}
}
else -> null
}