Bug Report T620319
Visible to All Users

Selection Expand incorrectly works on regions in Visual Basic

created 7 years ago

Selection expansion works strange, when I try select expand #Region
And there are Sub starting with comment lines

see screencast https://www.screencast.com/t/Oklu2a0cMw

Code example:

Visual Basic
Public Class Form1 #Region "Oper" Private Sub btnOper_Click(sender As System.Object, e As System.EventArgs) 'Beep() 'load DoSomething() End Sub #End Region #Region "Customer" Private Sub btnCustomer_Click(sender As System.Object, e As System.EventArgs) 'load DoSomething() End Sub #End Region Private Function MethodName() As Boolean End Function End Class
Comments (1)
DevExpress Support Team 7 years ago

    Hi Robert,

    Thank you for your report. I have reproduced this issue locally. We will fix it in our future builds.

    Answers approved by DevExpress Support

    created 7 years ago

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Show previous comments (17)
      RS RS
      Robert Schlesinger 7 years ago

        Expand selection selects comment line above. This need to be fixed.

        Visual Basic
        Private Sub xcv() 'comment Using adapter As New something() End Using End Sub

        https://www.screencast.com/t/3dAmCOUdV

        DevExpress Support Team 7 years ago

          Hi Robert,

          Thank you for providing the code sample and screencast. I have reproduced this issue and we are working on it.

          DevExpress Support Team 7 years ago

            We have corrected expanding the selection in your code sample and prepared a build with this fix: DevExpress.CodeRush.Roslyn-18.1.7.18204.vsix.

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.