1) There are not constants for group of code folding. So client has to know exact string to provide the code folding.
There are four groups of code folding in gsf: codeblocks, comments, initial-comment and imports
2) There is missing group for classes and interfaces.
3) The client should be able to overwrite the default fold template for a group.
Also see issue #142425, where is not possible map fold categories to the editor option.
Moving from ruby/GSF to editor/CSL. Step one: assign to myself ;-)
Step 2: trying to make the owner not myself but the owner of the subcomponent.
This is ENH. I was tempted to close it as wontfix but let's leave it opened as ENH for now.
Another quite important functionality is to be able to pass a code fold name by the CSL client. For example in HTML the fold description should contain the tag name itself, not just some "category" name like "...". The html editor folding had to regress when migrated to CSL because of this.
*** Bug 128995 has been marked as a duplicate of this bug. ***
Filed again, keeping the newer one
*** This bug has been marked as a duplicate of bug 127886 ***