microsoft / vscode

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

When I click save extra lines are being added to c# code #210868

Closed Franklin89 closed 6 months ago

Franklin89 commented 6 months ago

Type: Bug

When ever I hit ctrl+s extra lines are being added to the c# code. This is only happening in .razor files. This Laptop was just set up a couple days back and is using .editorconfig.

VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:20:17.278Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|13th Gen Intel(R) Core(TM) i7-1365U (12 x 2688)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|31.65GB (9.29GB free)| |Process Argv|. --crash-reporter-id 46fc9858-4240-404e-9526-7c15998d6bb2| |Screen Reader|no| |VM|0%|
Extensions (25) Extension|Author (truncated)|Version ---|---|--- spellright|ban|3.0.124 xml|Dot|2.5.1 gitlens|eam|14.9.0 EditorConfig|Edi|0.16.4 vscode-great-icons|emm|2.1.104 vsc-material-theme|Equ|34.3.1 vscode-todo-plus|fab|4.19.1 copilot|Git|1.180.0 copilot-chat|Git|0.13.1 vscode-pull-request-github|Git|0.82.1 vscode-azureappservice|ms-|0.25.2 vscode-azureresourcegroups|ms-|0.8.5 vscode-bicep|ms-|0.26.170 blazorwasm-companion|ms-|1.1.4 csdevkit|ms-|1.4.29 csharp|ms-|2.23.15 vscode-dotnet-runtime|ms-|2.0.3 vscodeintellicode-csharp|ms-|2.0.25 playwright|ms-|1.0.22 azure-account|ms-|0.11.6 powershell|ms-|2024.2.1 vscode-yaml|red|1.14.0 vscode-sort-json|ric|1.20.0 sonarlint-vscode|Son|4.4.2 material-theme|zhu|3.17.0 (4 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 vscrpc:30673769 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 2e7ec940:31000449 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r6:30993542 dsvsc020:30976470 pythonait:31006305 gee8j676:31009558 dsvsc021:30996838 724cj586:31013169 pythoncenvpt:31022790 ```
vscodenpa commented 6 months ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.88.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

Franklin89 commented 6 months ago

I updated VS Code and it is still happening.

Franklin89 commented 6 months ago

This is an issue with C# DevKit.