dotnet/roslyn

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

Ouverte

#34 200 ouverte le 17 mars 2019

 (0 commentaire) (2 réactions) (0 personne assignée)C# (4 257 forks)batch import
Area-IDEBugFeature - Editor Confighelp wanted

Métriques du dépôt

Stars
 (20 414 étoiles)
Métriques de merge PR
 (Merge moyen 6j 17h) (256 PRs mergées en 30 j)

Description

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.

Guide contributeur