I am working with a set of 97 XML Schema modules. The authors of these schemas went way overboard (in my opinion) with <xs:annotation> elements. For example, almost every element in the set has an @id attribute, and in every type definition where the @id is declared, there is an <xs:annotation> indicating that the attribute is "Optional id for data management." I really don't need to see that annotation every single time I see the attribute declaration! It just clutters the schemas and makes them harder to read. This is just one of many examples of excessive <xs:annotation>s.

So I went through all the modules and folded all the annotations. When I reopen some of the modules, the folding is persistent, as the Help says it shoudl be (https://www.oxygenxml.com/doc/versions/ ... ext%2Cmode), but sometimes it is not. It's been hard for me to discover a definite pattern, but my best guess is that oXygen has a limit to how many schema modules it can keep track of the folding status for, and that 97 exceeds that limit.

Can you confirm that, or perhaps suggest something that I'm doing wrong that causes oXygen to lose the folding?

We do have a maximum limit of folds that are persistently remembered and probably indeed you are overflowing that maximum.I will add an internal issue to see how we could better handle such situations on our side.