microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.53k stars 29.4k forks source link

Newline code is forced to CRLF when saving a file. #116357

Closed kemo14331 closed 3 years ago

kemo14331 commented 3 years ago

Issue Type: Bug

Process

  1. Select LF as the line feed code from the status bar.
  2. Save the file

Expected results

The newline code of the file will be saved as LF.

Actual result

The newline code of the file will be saved as CRLF.

VS Code version: Code - Insiders 1.54.0-insider (cd97629c4458c05b16a1fd444d21c61295ba2529, 2021-02-09T08:36:56.595Z) OS version: Darwin arm64 20.3.0

System Info |Item|Value| |---|---| |CPUs|undefined| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled| |Load (avg)|1, 2, 2| |Memory (System)|16.00GB (6.10GB free)| |Process Argv|--crash-reporter-id cff84bdf-0f43-4dd6-9871-31666becd93b| |Screen Reader|no| |VM|0%|
Extensions (8) Extension|Author (truncated)|Version ---|---|--- language-mcfunction|arc|0.17.0 mc-datapack-utility|Che|1.5.0 EditorConfig|Edi|0.16.4 fish|gio|0.0.4 vscode-language-pack-ja|MS-|1.53.2 code-eol|soh|0.3.3 datapack-language-server|SPG|3.3.0 gitmoji-vscode|Vtr|1.0.4
A/B Experiments ``` vsliv695:30137379 vsins829:30139715 vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30208930 pythonvsdeb440:30224570 pythonvsded773:30223139 pythonvspyt600cf:30251589 core-portspanel:30233467 coreuntitledfile:30249963 ```
vscodebot[bot] commented 3 years ago

(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

gjsjohnmurray commented 3 years ago

/needsMoreInfo - in particular, does this happen after you reload with all extensions disabled?

kemo14331 commented 3 years ago

Sorry, I disabled EditorConfig, and the problem went away.