Repository: vscode
Issue: Method moved from file A to B. It caused both editor and source control issues
Labels: info-needed,git


Type: <b>Bug</b>

Before you close it as a duplicate: It is NOT the known line ending issue. A whole function misses. 

Steps that I did: 
- Added a method `ManageUrlsHandler` to a file dashboard.go
- Later, I moved it to shortener_handler.go (I used CTRL-X; CTRL-V)

Experienced: 
- When I open dashboard.go, it doesn't show any change ![Image](https://github.com/user-attachments/assets/4d90d9c4-8998-4091-bcd0-d672749f335a)
- When I open shortener_handler.go, it shows the function 
- go build reports the method as it is declared twice ![Image](https://github.com/user-attachments/assets/3484a725-459f-4222-a727-a1e671bdfc0a)
- checked the source control tab: it lists dashboard.go as file that changed
- I double click on it. And vscode doesn't show any change in dashboard.go at diff view. ![Image](https://github.com/user-attachments/assets/fd4c39e3-f20a-4f39-99ce-38b7c60a3731)
- I checked git CLI. it shows the method both in dashboard.go and shortener_handler.go. It seems, CTRL-X didn't remove the function and also, the diff view thinks it is not there. ![Image](https://github.com/user-attachments/assets/94762913-8c03-450c-b8f9-fa529bbb2a32)

I tried: 
- close and start vscode
- ctrl+shift+p -> reload window
Didn't help. 
I'm pretty sure that it can be fixed by reverting the change from git cli, but I think I can keep my file system as it is in case any question occurs.

VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Windows_NT x64 10.0.26100
Modes:
Remote OS version: Linux x64 5.15.167.4-microsoft-standard-WSL2

<details>

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 9 5900X 12-Core Processor             (24 x 3693)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<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_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|63.91GB (44.50GB free)|
|Process Argv|--folder-uri=vscode-remote://wsl+Ubuntu/home/invisibleprogrammer/work/invisibleurl.net --remote=wsl+Ubuntu --crash-reporter-id 3da5b0ba-21ba-4f4d-8cf2-900588126357|
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|WSL: Ubuntu|
|OS|Linux x64 5.15.167.4-microsoft-standard-WSL2|
|CPUs|AMD Ryzen 9 5900X 12-Core Processor (24 x 0)|
|Memory (System)|31.30GB (29.22GB free)|
|VM|0%|
</details><details><summary>Extensions (12)</summary>

Extension|Author (truncated)|Version
---|---|---
remote-wsl|ms-|0.88.5
TabOut|alb|0.2.2
go|gol|0.44.0
java|red|1.38.0
intellicode-api-usage-examples|Vis|0.2.9
vscodeintellicode|Vis|1.3.2
vscode-gradle|vsc|3.16.4
vscode-java-debug|vsc|0.58.1
vscode-java-dependency|vsc|0.24.1
vscode-java-pack|vsc|0.29.0
vscode-java-test|vsc|0.43.0
vscode-maven|vsc|0.44.0


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyonecf:30548226
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
newcmakeconfigv2:31071590
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

```

</details>

<!-- generated by issue reporter -->