I'm populating a control with a bunch of lines (some readonly, some not). I then want to collapse all outlining blocks except for the bit where my user is supposed to enter their own source. However, calling Document.Outlining.RootNode.CollapseDescendants() doesn't seem to do anything. Is that because the outlining cache hasn't been constructed yet? I've tried calling Document.Language.PerformAutomaticOutlining(Document, fullRange) (where language is a VB.NET add-on) but that didn't help. If I put a breakpoint on the line, RootNode has zero child-nodes.
All this code runs before the form that contains the SyntaxEditor is shown.