suusan2go / kotlin-fill-class

Intellij plugin that provides intention action for empty constructor
https://plugins.jetbrains.com/plugin/10942-kotlin-fill-class
MIT License
268 stars 31 forks source link

Don't add trailing comma if last argument is trailing lambda #116

Closed oboenikui closed 1 year ago

oboenikui commented 1 year ago

Input

listOf("").joinToString(<caret>) {  }

Expected

listOf("").joinToString(
    separator = "",
    prefix = "",
    postfix = "",
    limit = 0,
    truncated = "",
) {  }

Actual

listOf("").joinToString(
    separator = "",
    prefix = "",
    postfix = "",
    limit = 0,
    truncated = ""
), {  }