dotnet/roslyn

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

开放

#32,790 创建于 2019年1月25日

 (0 条评论) (0 个反应) (0 位负责人)C# (4,257 个派生)batch import
Area-IDELanguage-VBhelp wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

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.

贡献者指南