Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Hidden Regions / Outlining not updated correctly

$
0
0

Hi everyone,

my custom languageservice implements outlining / hidden regions. Basically, they are displayed correctly most of the time. However, if I press enter at the _exact_ location where a code-region starts, the "old" region is kept and moved down by one line. A new (correct) region is created by the parser which accomodates for the newline. In short, I have one additional region - the old one, which is not correct. Please notice that my parser returns the correct number of regions - the additional one is somehow "kept alive" although it should be removed.

The below image shall illustrate what I mean. The first version of the function is correct. The second version as well, it shows where the outlining begins, marked with a red arrow. The third version shows the faulty result. One arrow marks the cursor (where a newline was inserted), the other one marks the faulty hidden region, which is _not_ returned by my parser, and shouldn't be there.

Example Screenshots

Any ideas what's going wrong here? I looked at various examples and could find anything that I'm doing differently.

Thanks a lot,
Max




Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>