Repository: vscode
Issue: Git: Source Control annoying unexpected Content Shift
Labels: git,ux,polish

Type: <b>Bug</b>

1. Have a slow PC or a remote Codespace which has a "higher" latency. 
2. Open the Source Control Tab
=> If it is opened the first time a content shift can be seen (the modified indicators are loaded later)
3. To consistently reproduce stage a file and unstage it.
=> Each time you one can see that the modified indicator (![image](https://user-images.githubusercontent.com/13590797/204150455-d9d1e222-e6d6-4a66-92f6-9e0c3a9e1d77.png)) is reset (![image](https://user-images.githubusercontent.com/13590797/204150495-151d7306-4733-4c13-bfe2-65bb46241660.png)) and updates after a few seconds (which shifts the content)
 
Here an all on view. Look at the indicators on the right side:
![Animation](https://user-images.githubusercontent.com/13590797/204150647-9b39acce-5610-4859-b9d9-f3ddeffb4cd9.gif)

Why am I annoyed? It happend multiple times now that I hovered over the revert button, but the content shifted unexpectedly and it added the file to the staging view instead. 


VS Code version: Code 1.73.1 (6261075646f055b99068d3688932416f2346dd3b, 2022-11-09T04:27:29.066Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: No
Remote OS version: Linux x64 5.15.0-1022-azure

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)|
|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: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|undefined|
|Memory (System)|15.92GB (5.11GB free)|
|Process Argv|--folder-uri vscode-remote://ssh-remote%2Bmasterthesis/home/masteruser/study.master-thesis --crash-reporter-id c0b728c1-554c-4067-b8ee-a399c07e544b|
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|SSH: masterthesis|
|OS|Linux x64 5.15.0-1022-azure|
|CPUs|Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz (8 x 2593)|
|Memory (System)|31.35GB (26.08GB free)|
|VM|0%|
</details><details><summary>Extensions (72)</summary>

Extension|Author (truncated)|Version
---|---|---
packer|4op|0.3.0
auto-rename-tag|for|0.1.10
codespaces|Git|1.13.1
gitpod-desktop|git|0.0.65
jupyter-keymap|ms-|1.0.0
remote-containers|ms-|0.262.3
remote-ssh|ms-|0.92.0
remote-ssh-edit|ms-|0.84.0
remote-wsl|ms-|0.72.0
vscode-remote-extensionpack|ms-|0.23.0
remote-explorer|ms-|0.0.2
riscv-plus|ste|0.1.0
vscode-icons|vsc|12.0.1
riscv|zhw|0.0.8
vscode-openapi|42C|4.15.9
packer|4op|0.3.0
vscode-base64|ada|0.1.0
ng-template|Ang|15.0.1
vscode-eslint|dba|2.2.6
xml|Dot|2.5.1
gitlens|eam|13.1.1
EditorConfig|Edi|0.16.4
prettier-vscode|esb|9.9.0
auto-rename-tag|for|0.1.10
codespaces|Git|1.13.1
copilot|Git|1.61.7372
vscode-pull-request-github|Git|0.54.1
gitpod-remote-ssh|git|0.0.38
go|gol|0.36.0
todo-tree|Gru|0.0.220
terraform|has|2.25.0
rest-client|hum|0.25.1
latex-workshop|Jam|9.0.1
mongo-runner|Joe|0.6.4
run-it-on-v2|jon|1.0.2
docomment|k--|0.1.31
rainbow-csv|mec|3.3.0
file-downloader|min|1.0.12
vscode-docker|ms-|1.22.2
csharp|ms-|1.25.2
isort|ms-|2022.8.0
python|ms-|2022.18.2
vscode-pylance|ms-|2022.11.30
jupyter|ms-|2022.9.1303220346
jupyter-keymap|ms-|1.0.0
jupyter-renderers|ms-|1.0.12
vscode-jupyter-cell-tags|ms-|0.1.6
vscode-jupyter-powertoys|ms-|0.0.6
vscode-jupyter-slideshow|ms-|0.1.5
azure-account|ms-|0.11.2
cpptools|ms-|1.12.4
hexeditor|ms-|1.9.9
live-server|ms-|0.4.4
vscode-typescript-tslint-plugin|ms-|1.3.4
vsliveshare|ms-|1.0.5776
quicktype|qui|12.0.46
java|red|1.12.0
vscode-commons|red|0.0.6
vscode-yaml|red|1.10.1
partial-diff|ryu|1.4.3
riscv-plus|ste|0.1.0
wolf|tra|0.4.3
intellicode-api-usage-examples|Vis|0.2.6
vscodeintellicode|Vis|1.2.29
vscode-java-debug|vsc|0.46.0
vscode-java-dependency|vsc|0.21.1
vscode-java-pack|vsc|0.25.6
vscode-java-test|vsc|0.37.1
vscode-maven|vsc|0.39.2
vscode-icons|vsc|12.0.1
quokka-vscode|Wal|1.0.514
riscv|zhw|0.0.8

(2 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
vstes263cf:30335440
vscoreces:30445986
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
pyindex848:30577860
nodejswelcome1:30587005
282f8724:30602487
gswce1:30612156
iaj6b796:30613358
dbltrim-noruby:30604474
f6dab269:30613381

```

</details>

<!-- generated by issue reporter -->