Solution for now is to disable smart folding, which requires changing an argument in the source code (no settings for it).