I want to apply outlining for multiline comments - but ONLY if they do in fact span multiple lines.
I am using a dynamic language with code behind.
It works great if I open a file that already contains a multi-line comment, or paste a complete comment into the text.
However if I type a comment in normal fashion it does not display the outline unless I go back and change something on the line where the comment starts. [causing it to reparse that line]
I understand why that happens - I only set the start of an outline block if there is a matching 'end' AND it is on a different line.
Obviously that is not true when the start of the comment is typed.
I thought I could fix that by calling PerformAutomaticOutlining() for the TextRange of the '/*' [start comment] when the '*/' triggers the end outlining. However if I do that unconditionally it goes into a loop [expected].
I tried to call it conditionally based on SelectedView.DisplayLines(lineIdx).OutliningState but it seems that the Outlining State is always None.
Is this a bug, or do dynamic languages not set OutliningState?
Is there any other way to make this work?
Thanks
Mike