dotnet/roslyn

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

Open

#32,790 opened on Jan 25, 2019

View on GitHub
 (0 comments) (0 reactions) (0 assignees)C# (4,257 forks)batch import
Area-IDELanguage-VBhelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

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.

Contributor guide