From 17013dcfbae774f5b83893aec3b159054e27286c Mon Sep 17 00:00:00 2001 From: Nikolay Egorov Date: Thu, 26 Jun 2025 14:08:23 +0300 Subject: [PATCH] KTIJ-34640: Support multiple compiler options directives for testing scripts GitOrigin-RevId: 09791ac7a8c2429d763398ac42938bc654cb5a32 --- ...2BundledCompilerPluginsInScriptHighlightingMetaInfoTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/kotlin/highlighting/highlighting-k2/test/org/jetbrains/kotlin/idea/k2/highlighting/AbstractK2BundledCompilerPluginsInScriptHighlightingMetaInfoTest.kt b/plugins/kotlin/highlighting/highlighting-k2/test/org/jetbrains/kotlin/idea/k2/highlighting/AbstractK2BundledCompilerPluginsInScriptHighlightingMetaInfoTest.kt index 23404538caca..ffb2606f6f0b 100644 --- a/plugins/kotlin/highlighting/highlighting-k2/test/org/jetbrains/kotlin/idea/k2/highlighting/AbstractK2BundledCompilerPluginsInScriptHighlightingMetaInfoTest.kt +++ b/plugins/kotlin/highlighting/highlighting-k2/test/org/jetbrains/kotlin/idea/k2/highlighting/AbstractK2BundledCompilerPluginsInScriptHighlightingMetaInfoTest.kt @@ -61,13 +61,13 @@ abstract class AbstractK2BundledCompilerPluginsInScriptHighlightingMetaInfoTest globalDirectives: Directives, configuration: ScriptCompilationConfiguration ): ScriptCompilationConfiguration { - val compilerArguments = globalDirectives[COMPILER_ARGUMENTS_DIRECTIVE.removeSuffix(":")] + val compilerArguments = globalDirectives.listValues(COMPILER_ARGUMENTS_DIRECTIVE.removeSuffix(":")) if (compilerArguments == null) { return configuration } return configuration.with { - compilerOptions.putIfAny(listOf(compilerArguments)) + compilerOptions.putIfAny(compilerArguments) } } } \ No newline at end of file