[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 <aleksei.cherepanov@jetbrains.com>

GitOrigin-RevId: 75b93333bc1bf900779cdfadfeaff1920d0153d0
This commit is contained in:
Aleksei.Cherepanov
2025-02-12 12:11:23 +00:00
committed by intellij-monorepo-bot
parent 9fa2f51ccb
commit 5a7a7c82e8
@@ -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 {