When there are errors or warnings in your code, and no folding is enabled,
the markers appear in the right-hand bar in the proper location, as if the
length of the bar were representing the entire file.
But when code folding is active, this doesn't seem to be the case any more.
All the markers are clustered up towards the top, even if the error or
warning is at the bottom of the file.
Can you consider changing the behavior of this bar so that it always shows
the errors and warnings and such relative to the entire file, regardless of
any folded status? I think that'd be a bit more intuitive. I really don't
think code folding should affect the positioning of those markers. Maybe
that could be an option? (Code Folding Affects Error/Warning marker