Hi,
First, let me thank you for continuing support of this extension while JetBrains stopped supporting it.
I'm trying your extension as it comes handy on the new project I am working on at my company, as they are using "raw" Java 8 with all the boilerplate code I used to not see anymore while working with Lombok and also Java 17.
Specifically seeing again explicit getters and setters taking up a good part of the code.
I wanted to only enable some of the folding and especially not the variable declaration as I' not familiar with the project yet and having var
everywhere does not help me much for the time being.
However I noticed a buggy behaviour on the settings section (located in Editor > General > Code Folding).
Initially, I was on version 1.0.3 where I could notcie that even when deslecting some settings, it was not applying to the code (typically "Variable declarations" were still shown as var
even when reopening files -- reopening the IDE helped it I think).
After upgrading yesterday to 1.0.6 though, I noticed that I couldn't persist unselecting settings.
Reproduction:
- Go to
Editor > General > Code Folding
- Unselect
Variable declarations
Apply
becomes selectable and the settings section is highlighted blue
- Click
Apply
Apply
stays selectable and the settings section is still highlighted blue
- No crash or an y log seems to occur in
idea.log
- Exit and open again the settings
- The settings were not persisted
Interestingly enough the Variable declarations
are not folded, so it seems like it could just be an issue with the IDE settings part not showing what is enabled or not (which is a problem as you can neither enable or disable those that were already set when installing the plugin).
Let me know if I can provide you with any details so I can help you identify the issue if you manage to reproduce it.
Or let me know how I can identify it with you cannot reproduce.
I would be happy to help improve the plugin as I rely on it.
There is some alternative folding suggestions I already thought of regarding getter/setter and strings that could be added and controlled by settings. Plus other things not folded yet.
Note: It would be nice also to put the plugin's settings in its own section of the same folding section to see easily what is not built-in.
IntelliJ IDEA 2023.3.2 (Community Edition)
Build #IC-233.13135.103, built on December 20, 2023
Runtime version: 17.0.9+7-b1087.9 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.2.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Metal Rendering is ON
Registry:
ide.tree.horizontal.default.autoscrolling=false
project.tree.structure.show.url=false
ide.experimental.ui=true
Non-Bundled Plugins:
Docker (233.13135.108)
gherkin (233.11799.165)
com.github.bigdecimal-folding2 (1.0.6)
cucumber-java (233.11799.196)
GrepConsole (12.22.1-IJ2021.1)
Kotlin: 233.13135.103-IJ
- New UI enabled
- Plugin version 1.0.6 as published in the extra repository