Kotlin Facet: Synchronize version info on opening the configuration editor

This commit is contained in:
Alexey Sedunov
2017-02-15 12:21:51 +03:00
parent 060a865fb1
commit 2790fcf4bd
@@ -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() {