Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 VA outline -> context menu/surround with / #region

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
jzq740176597 Posted - Apr 20 2018 : 03:25:18 AM
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.





1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Apr 20 2018 : 07:28:28 AM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000