Block folding stops at #ifdef

When i want to collapse a function (block), it doesn't collapse everything in between the braces, but it just collapses the piece until it encounters a #ifdef. I have beta 7.
image

Thanks for your report @natanassies! I have submitted a formal report about this to the Arduino IDE developers: