Darkyenus / glsl4idea

A GLSL language plugin for IntelliJ IDEA
GNU Lesser General Public License v3.0
101 stars 30 forks source link

Redundant new line on lambda expression wrap in Kotlin #157

Closed vagran closed 2 years ago

vagran commented 3 years ago

This plugin somehow affects editing Kotlin files. The issue exists only when the plugin is enabled. Type in some Kotlin file some expression with lambda last argument, e.g.

synchronized(a) {

}

When { is typed, } is auto inserted, the cursor is between braces: image2 Then pressing enter inserts two new lines instead of one: image

Plugin version 1.19 IntelliJ IDEA 2020.3 (Ultimate Edition) Build #IU-203.5981.155, built on December 1, 2020

Darkyenus commented 3 years ago

That's odd. I'll see if I can reproduce as soon as I have some free time.

kubeliv commented 3 years ago

I am also facing this issue. There is a bug on the Kotlin plugin's issue tracker that references this same behavior. https://youtrack.jetbrains.com/issue/KTIJ-631

Darkyenus commented 2 years ago

I suspect this may be fixed by 1.20 which will be released today. Please reopen if this is not the case.