Skip to content

Trailing closure and use closure literals content assist prefs together produce strange selection #626

@eric-milles

Description

@eric-milles

Assuming "Place trailing closure arguments after closing parenthesis" is checked (current default) and other content assist preferences are default as well, and given:

contribute(currentType()) {
  method name: 'foo', params: [bar: String, block: Closure]
}
fo|

Content assist at | with "Use closure literals for closure arguments" checked gives foo(bar) { it } -- replace "{ it }" with "{ }" and selection/caret goes inside literal instead of covering it. This matched end state of #625.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions