
I allow the user to switch Automatic outlining on/off.
Switching it off is no problem. I set the mode to None and it goes away.
Switching it back on however does not cause the outlining to reappear.
I had expected it would re-perform the automatic outlining when I set the mode to Automatic.
I tried adding the line yntaxEditor.RefreshOutlining but that had no effect either.
Finally, adding Document.Reparse worked, but that seems like overkill to reparse the entire document just to apply the outlining.
Am I missing something here?