Element folding not entirely persistent

Oxygen general issues.
EarlMorton
Posts: 17
Joined: Wed Jan 11, 2017 11:27 pm

Element folding not entirely persistent

Post 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!
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Element folding not entirely persistent

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
EarlMorton
Posts: 17
Joined: Wed Jan 11, 2017 11:27 pm

Re: Element folding not entirely persistent

Post by EarlMorton »

OK--thanks, Radu!

Earl
yamahito
Posts: 7
Joined: Fri Nov 11, 2011 3:39 pm

Re: Element folding not entirely persistent

Post by yamahito »

What is the maximum number of folds, out of interest?
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Element folding not entirely persistent

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply