Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow renaming lambda parameters #1298

Closed
anthonyvdotbe opened this issue Feb 25, 2020 · 0 comments · Fixed by eclipse-jdtls/eclipse.jdt.ls#1375
Closed

Allow renaming lambda parameters #1298

anthonyvdotbe opened this issue Feb 25, 2020 · 0 comments · Fixed by eclipse-jdtls/eclipse.jdt.ls#1375

Comments

@anthonyvdotbe
Copy link

When trying to rename a lambda parameter, a tooltip says Renaming this element is not supported.

Environment
  • Operating System: Windows 10
  • JDK version: 13
  • Visual Studio Code version: 1.42.1
  • Java extension version: 0.57.0
Steps To Reproduce
  1. create a file Test.java as below
  2. place the cursor at the lambda parameter i
  3. press F2 to attempt renaming it
import java.util.function.Function;

class Test {

    Function<Integer, String> f = i -> "" + i;

}
Current Result

A tooltip says Renaming this element is not supported.

Expected Result

Renaming is supported

Additional Informations

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants