diff --git a/plugins/kotlin/fir/src/org/jetbrains/kotlin/idea/parameterInfo/KotlinHighLevelFunctionParameterInfoHandler.kt b/plugins/kotlin/fir/src/org/jetbrains/kotlin/idea/parameterInfo/KotlinHighLevelFunctionParameterInfoHandler.kt index f9f5d4e117bb..b508f5a09f48 100644 --- a/plugins/kotlin/fir/src/org/jetbrains/kotlin/idea/parameterInfo/KotlinHighLevelFunctionParameterInfoHandler.kt +++ b/plugins/kotlin/fir/src/org/jetbrains/kotlin/idea/parameterInfo/KotlinHighLevelFunctionParameterInfoHandler.kt @@ -322,6 +322,8 @@ abstract class KotlinHighLevelParameterInfoWithCallHandlerBase 0) { append(", ") if (markUsedUnusedParameterBorder) { - // TODO: This matches FE 1.0 plugin behavior, but consider removing "disable before highlight". - // It's odd that we disable the used parameters, even though they might match. See NamedParameter3.kt test: - // `y = false` matches, and we disable it even though the next argument could match too (e.g., `x = `). + // This is used to "disable" the used parameters, when in "named mode" and there are more unused parameters. + // See NamedParameter3.kt test. Disabling them gives a visual cue that they are already used. // Highlight the space after the comma; highlighted text needs to be at least one character long highlightStartOffset = length - 1 @@ -422,6 +423,15 @@ abstract class KotlinHighLevelParameterInfoWithCallHandlerBase