Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VA outline -> context menu/surround with / #region
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jzq740176597
Tomato Guru

China
343 Posts

Posted - Apr 20 2018 :  03:25:18 AM  Show Profile  Reply with Quote
VA2258 /vs 2017 /win10 64bit

C# project.

steps in C# source:

VA outline -> context menu/surround with / #region-endregion

if there's comment block inside methods for surround will lead additional empty #region - #endregion added!

try it.






Creation come from persist!

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Apr 20 2018 :  07:28:28 AM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000