dotnet/roslyn

Move to new file doesn't honor charset in .editorconfig

開放

#34,200 建立於 2019年3月17日

 (0 則留言) (2 個反應) (0 位負責人)C# (4,257 個分叉)batch import
Area-IDEBugFeature - Editor Confighelp wanted

倉庫指標

星標
 (20,414 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Version Used: 15.9.9

Steps to Reproduce:

  1. Have an .editorconfig with charset = utf-8
  2. Open an existing file (encoding irrelvant)
  3. Add a type to the file
  4. Apply "Move type to new file" refactoring

Expected Behavior:

The new file is stored in the encoding specified by .editorconfig (in this case UTF8, no BOM).

Actual Behavior:

The new file is stored in UTF8-BOM.

貢獻者指南