eclipse.jdt.ls icon indicating copy to clipboard operation
eclipse.jdt.ls copied to clipboard

Only add parentheses for lambda expression completions with multiple parameters

Open gayanper opened this issue 2 years ago • 1 comments

The completion suggestions for lambda actually adds parathesis for single parameters today. Only add the parentheses when there are multiple parameters for lambda expression.

gayanper avatar May 24 '22 12:05 gayanper

Looks like in both Eclipse and IntelliJ will only add parentheses when the parameter number is larger than 1. And I didn't find a setting to control that behavior. (Correct me if I'm wrong)

If this is true, we can follow the same behavior.

jdneo avatar May 30 '22 12:05 jdneo

Fixed by https://github.com/eclipse/eclipse.jdt.ls/pull/2243

gayanper avatar Sep 27 '22 14:09 gayanper