vscode: Reverting uncommited lines duplicates other lines

Issue Type: Bug

I’ve encountered some very strange behavior where when I revert some simple uncommited changes on some lines in my code using the built in git tools then some other lines further down or up the code (that are also uncommited changes) will duplicate. I can’t even begin to wrap my head around what could be causing this. See the linked video that I recorded of the issue since I don’t know how to describe this properly.

Recording of the problem

What other information should I provide to help better diagnose this issue?

Thanks.

VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:34:46.910Z) OS version: Windows_NT x64 10.0.19041

Extensions (8) Recording of the problem Extension|Author (truncated)|Version ---|---|--- extendscript-debug|Ado|1.1.2 phpserver|bra|3.0.1 php-debug|fel|1.14.5 php-intellisense|fel|2.3.14 python|ms-|2020.12.424452561 jupyter|ms-|2020.12.414227025 live-sass|rit|3.0.0 LiveServer|rit|5.6.1
A/B Experiments
vsliv368:30146709
vsreu685:30147344
openlogontheside:30221877
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30211401
wsl2promptcf:30224613
pythonvsdeb440cf:30242243
unusedpromptcf:30224611
folderexplorercf:30224615
openfilemenucf:30224648
pythonvsded773cf:30236630
pythonvspyt600cf:30241728
vsjup459cf:30237188

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 6
  • Comments: 20 (2 by maintainers)

Most upvoted comments

Seems like it is resolved in 1.76.1. I assume this was the one: https://github.com/microsoft/vscode/issues/176051

Yes! 🎉 I can confirm that.

I have now also experienced this issue running VScode 1.67.0. Reverted a change on row 79 and got a new set of curly brackets inserted 100 lines below.