dotnet/roslyn

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

Aperta

#34.200 aperta il 17 mar 2019

 (0 commenti) (2 reazioni) (0 assegnatari)C# (4257 fork)batch import
Area-IDEBugFeature - Editor Confighelp wanted

Metriche repository

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

Descrizione

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.

Guida contributor