Page 1 of 1

Element folding not entirely persistent

Posted: Fri Dec 21, 2018 7:43 pm
by EarlMorton
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?

Thanks!

Re: Element folding not entirely persistent

Posted: Mon Dec 24, 2018 10:49 am
by Radu
Dear Earl,

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.

Regards,
Radu

Re: Element folding not entirely persistent

Posted: Wed Jan 02, 2019 6:15 pm
by EarlMorton
OK--thanks, Radu!

Earl

Re: Element folding not entirely persistent

Posted: Fri Nov 15, 2019 4:29 pm
by yamahito
What is the maximum number of folds, out of interest?

Re: Element folding not entirely persistent

Posted: Mon Nov 18, 2019 11:52 am
by Radu
Hi,

That maximum number of files for which we preserve the fold information seems to be 50. When the 51'st file is opened/closed, the information for the first file for which the folding was preserved will be lost.

Regards,
Radu