dotnet/roslyn

VB auto-format should add original text to undo stack when auto-formatting copy-pasted text

オープン

#51,042 opened on 2021/02/06

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)C# (4,257 件のフォーク)batch import
Area-IDEBugLanguage-VBhelp wanted

Repository metrics

Stars
 (20,414 個のスター)
PR merge metrics
 (平均マージ 6d 17h) (30d で 256 merged PRs)

説明

Version Used:

Steps to Reproduce:

  1. Copy the following multi-line text:
partial method that does not have implementation part is not emitted to metadata.
partial method that does not have implementation part is not emitted to metadata.
  1. Paste it to VB source file.
Module Program
    Sub Main(args As String())
      $$ 
    End Sub
End Module
  1. Ctrl+Z

Expected Behavior:

After copying (the first line is auto-formatted):

Module Program
    Sub Main(args As String())
      Partial method that does Not have implementation part Is Not emitted To metadata.
Partial method that does Not have implementation part Is Not emitted To metadata.
    End Sub
End Module

Ctrl+Z undoes the formatting,

Module Program
    Sub Main(args As String())
      partial method that does not have implementation part is not emitted to metadata.
partial method that does not have implementation part is not emitted to metadata.
    End Sub
End Module

Actual Behavior:

Cltr+Z removes the pasted text.

コントリビューターガイド