Vanco / SequencePlugin

SequencePlugin for IntelliJ IDEA
Other
693 stars 198 forks source link

The lambda block cannot be deleted #145

Closed alvin-susu closed 1 year ago

alvin-susu commented 2 years ago

Describe the bug The lambda block cannot be deleted, and the detailed content of the lambda expression cannot be displayed. This style gives people a bad experience

Plugin & IDE info:

Additional context like this, when you put them in your code, this plugin will show you : () ->,and this can't be removed image

List<List<Long>> mglist = Lists.newArrayList();
Stream.iterate(0, n -> n + 1).limit(limit).forEach(i -> {
                    mglist.add(request.getPkids().stream().skip(i * 1000).limit(1000).collect(Collectors.toList()));
                });

please fix this problem

Vanco commented 2 years ago

Try to opt-out show lambda call in settings.

duomn10 commented 1 year ago

@Vanco I also encountered this problem, and I fixed it based on the v2.2.6 tag. But I don't know how to submit PR based on tag.

Vanco commented 1 year ago

@duomn10 I create b_v2.2.6 branch for you. Now do what you need to do. Thanks for your help.

duomn10 commented 1 year ago

@Vanco I submitted a PR. Logically, SingleMethodFilter can be allowed according to offset, but I did not add TestCase, all changes should not affect the previous logic as much as possible.

152

Vanco commented 1 year ago

fixed since v3.0.2