Same problem as
Steps to reproduce:
2. Collapse all folding markers in the file. ( Folding > Collapse all )
3. Add the following code to the end of the file:
Nodes should stay folded.
All nodes unfold after the syntax error is detected.