Rearrange script definition contributors to avoid old EP appear before new EP
Fix highlighting of build.gradle.kts files with LivePlugin enabled ^KT-23571 Fixed
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ class ScriptDefinitionsManager(private val project: Project): ScriptDefinitionPr
|
||||
val fromDeprecatedEP = Extensions.getArea(project).getExtensionPoint(ScriptTemplatesProvider.EP_NAME).extensions.toList()
|
||||
.map(::ScriptTemplatesProviderAdapter)
|
||||
val fromNewEp = Extensions.getArea(project).getExtensionPoint(ScriptDefinitionContributor.EP_NAME).extensions.toList()
|
||||
return fromDeprecatedEP + fromNewEp
|
||||
return fromNewEp.dropLast(1) + fromDeprecatedEP + fromNewEp.last()
|
||||
}
|
||||
|
||||
fun reloadScriptDefinitions() = lock.write {
|
||||
|
||||
Reference in New Issue
Block a user