From 5a7a7c82e8efea3c1f362007981cf299afdb2ab8 Mon Sep 17 00:00:00 2001 From: "Aleksei.Cherepanov" Date: Wed, 12 Feb 2025 12:11:23 +0000 Subject: [PATCH] [Kotlin] Update the Kotlin facet editor to save compiler arguments to the workspace model Ensure compiler arguments in workspace model entity are updated after user changes Facet in GUI. This improves consistency between the UI and the underlying facet settings configuration. ^KTIJ-32469 Fixed Merge-request: IJ-MR-154454 Merged-by: Aleksei Cherepanov GitOrigin-RevId: 75b93333bc1bf900779cdfadfeaff1920d0153d0 --- .../compilerPreferences/facet/KotlinFacetEditorGeneralTab.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/kotlin/base/compiler-configuration-ui/src/org/jetbrains/kotlin/idea/base/compilerPreferences/facet/KotlinFacetEditorGeneralTab.kt b/plugins/kotlin/base/compiler-configuration-ui/src/org/jetbrains/kotlin/idea/base/compilerPreferences/facet/KotlinFacetEditorGeneralTab.kt index da2181f2108a..6adbe27a53ff 100644 --- a/plugins/kotlin/base/compiler-configuration-ui/src/org/jetbrains/kotlin/idea/base/compilerPreferences/facet/KotlinFacetEditorGeneralTab.kt +++ b/plugins/kotlin/base/compiler-configuration-ui/src/org/jetbrains/kotlin/idea/base/compilerPreferences/facet/KotlinFacetEditorGeneralTab.kt @@ -462,6 +462,7 @@ class KotlinFacetEditorGeneralTab( override fun apply() { validateOnce { editor.compilerConfigurable.apply() + configuration.settings.compilerArguments = editor.compilerConfigurable.commonCompilerArguments with(configuration.settings) { useProjectSettings = editor.useProjectSettingsCheckBox.isSelected editor.getChosenPlatform()?.let {