Can you post a code sample showing the sort of code that triggers this bug for you? I have tried the following C# test code:
class felineBaseClassCS
{
virtual public bool publicTestMember()
{
// simple comment block inside a function
// that is going to be surrounded
// see what happens here
return false;
}
// simple comment block
// between two methods
// in the class to test surround
//
virtual protected bool protectedTestMember()
{
/*
* trying a multi-line comment block
* inside this function to see what happens
*/
return false;
}
}
and in VA Outline I have selected the two functions "publicTestMember()" and "protectedTestMember()" and done a surround with #region on both of them.
I have tested this with VA Outline showing comments, and hiding comments, and so far no sign of the problem. So I assume I am testing something different to what you are doing.