Kotlin Facet: Synchronize version info on opening the configuration editor
This commit is contained in:
@@ -89,6 +89,14 @@ class KotlinFacetEditorGeneralTab(
|
|||||||
targetPlatformComboBox.addActionListener {
|
targetPlatformComboBox.addActionListener {
|
||||||
updateCompilerConfigurable()
|
updateCompilerConfigurable()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val commonCompilerArguments = compilerInfo.commonCompilerArguments
|
||||||
|
if (configuration != null && commonCompilerArguments != null) {
|
||||||
|
with(configuration.settings.versionInfo) {
|
||||||
|
commonCompilerArguments.languageVersion = languageLevel?.versionString
|
||||||
|
commonCompilerArguments.apiVersion = apiLevel?.versionString
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal fun updateCompilerConfigurable() {
|
internal fun updateCompilerConfigurable() {
|
||||||
|
|||||||
Reference in New Issue
Block a user