dotnet/roslyn

Visual Studio doesn't adjust XML Literal tag when changing tag name

Aperta

#32.790 aperta il 25 gen 2019

 (0 commenti) (0 reazioni) (0 assegnatari)C# (4257 fork)batch import
Area-IDELanguage-VBhelp wanted

Metriche repository

Star
 (20.414 stelle)
Metriche merge PR
 (Merge medio 6g 17h) (256 PR mergiate in 30 g)

Descrizione

Version Used: Visual Studio 2019 Preview 2

🔗 Originally here: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/132619

Steps to Reproduce:

  1. Add the following VB code:

    Module Module1
    
        Sub Main()
            Dim xml = <root>
                          <nam>Name</nam>
                      </root>
        End Sub
    
    End Module
    
  2. Change <nam> to <name>

Expected Behavior:

</nam> changes to </name>

Actual Behavior:

The closing tag is not adjusted.

Guida contributor