If you are not in a hurry to include the folding provider in the release, I would like to come back to this after work and add some tsdoc and testing. 6AM is a bit too early for me to write tests 😅 otherwise I can just push it as-is right now and add test and docs later.