Repository: vscode
Issue: Making any change in a certain file introduces '\r' characters
Labels: bug,editor-core

Type: <b>Bug</b>

- Open the following file in VS Code: https://gitlab.com/tezos/tezos/-/blob/e39ff503ed217fa98146c2955f2feb41d8bd9814/src/lib_micheline/test/test_parser.ml
- Make any change, then undo the change.
- (Note: I only tested with auto-save enabled)
- Observe with `diff` or `git diff` that carriage returns have been inserted into the file.

VS Code version: Code 1.74.2 (e8a3071ea4344d9d48ef8a4df2c097372b0c5161, 2022-12-20T10:27:19.253Z)
OS version: Linux x64 5.15.86
Modes:
Sandboxed: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 9 3900X 12-Core Processor (24 x 2200)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: disabled_software<br>video_encode: disabled_software<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|1, 1, 1|
|Memory (System)|62.73GB (57.22GB free)|
|Process Argv|. --crash-reporter-id 2fdedae6-b942-4b71-8afc-6840a9ceb64e|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|undefined|
|XDG_CURRENT_DESKTOP|undefined|
|XDG_SESSION_DESKTOP|undefined|
|XDG_SESSION_TYPE|tty|
</details><details><summary>Extensions (53)</summary>

Extension|Author (truncated)|Version
---|---|---
asp-syntax-highlight|abe|0.0.5
vscode-tlaplus|aly|1.5.4
amvim|aui|1.34.0
michelson|bak|0.1.0
Nix|bbe|1.0.1
better-toml|bun|0.3.2
rescript-vscode|che|1.10.0
doxdocgen|csc|1.4.0
gitlens|eam|13.2.0
prettier-vscode|esb|9.10.3
answer-set-programming-language-support|ffr|0.7.0
shell-format|fox|7.2.2
vscode-pull-request-github|Git|0.56.0
go|gol|0.37.0
haskell|has|2.2.2
lua-plus|jep|1.1.1
nix-ide|jno|0.2.1
cmake-language-support-vscode|jos|0.0.9
solidity|Jua|0.0.141
language-haskell|jus|3.6.0
ligo-vscode|lig|0.4.27
bash-ide-vscode|mad|1.26.0
direnv|mkh|0.10.1
vscode-dotnet-runtime|ms-|1.6.0
remote-containers|ms-|0.266.1
remote-ssh|ms-|0.94.0
remote-ssh-edit|ms-|0.84.0
remote-wsl|ms-|0.72.0
vscode-remote-extensionpack|ms-|0.23.0
cmake-tools|ms-|1.12.27
cpptools|ms-|1.13.9
cpptools-extension-pack|ms-|1.3.0
remote-explorer|ms-|0.0.3
vsliveshare|ms-|1.0.5797
vsliveshare-audio|ms-|0.1.91
vsliveshare-pack|ms-|0.4.0
ocaml-platform|oca|1.12.0
diff|raf|0.0.1
vscode-yaml|red|1.11.0
rust-analyzer|rus|0.3.1361
multi-command|ryu|1.6.0
preview-vscode|sea|2.2.5
indenticator|Sir|0.7.0
tiltfile|til|0.0.3
shellcheck|tim|0.29.3
graphviz-interactive-preview|tin|0.3.5
cmake|twx|0.0.17
vscode-mdx|uni|1.0.3
errorlens|use|3.6.0
vscode-todo-highlight|way|1.0.5
viml|Xad|2.1.2
markdown-all-in-one|yzh|3.5.0
vscode-open-in-github|ziy|1.3.6

(7 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
vscccc:30610679
pyindex848:30577860
nodejswelcome1cf:30587006
282f8724:30602487
iaj6b796:30613358
f6dab269:30613381
fim-prod:30623723
vscup:30628656

```

</details>

<!-- generated by issue reporter -->