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

Feature Request: Allow folding static blocs #1777

Closed
fredg1 opened this issue May 20, 2021 · 0 comments · Fixed by #1791
Closed

Feature Request: Allow folding static blocs #1777

fredg1 opened this issue May 20, 2021 · 0 comments · Fixed by #1791

Comments

@fredg1
Copy link

fredg1 commented May 20, 2021

It's currently not possible to fold the content of static blocs, e.g.

static {
  map.add(value1);
  map.add(value2);
  map.add(value3);
  (...);
}

Would be nice if it was possible.
Thanks <3

@fredg1 fredg1 changed the title Allow folding static blocs Feature Request: Allow folding static blocs May 20, 2021
@rgrunber rgrunber self-assigned this Jun 2, 2021
@rgrunber rgrunber added this to the Early June 2021 milestone Jun 2, 2021
rgrunber added a commit to rgrunber/eclipse.jdt.ls that referenced this issue Jun 2, 2021
- Use method folding logic to also compute static block folding
- Fixes eclipse-jdtls#1777

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
rgrunber added a commit to rgrunber/eclipse.jdt.ls that referenced this issue Jun 3, 2021
- Use method folding logic to also compute static block folding
- Fixes eclipse-jdtls#1777

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
rgrunber added a commit that referenced this issue Jun 3, 2021
- Use method folding logic to also compute static block folding
- Fixes #1777

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
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.

2 participants