Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method moved from file A to B. It caused both editor and source control issues #236827

Open
InvisibleProgrammer opened this issue Dec 22, 2024 · 0 comments
Assignees
Labels
new release Issues found in a recent release of VS Code

Comments

@InvisibleProgrammer
Copy link

Type: Bug

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
  • When I open shortener_handler.go, it shows the function
  • go build reports the method as it is declared twice Image
  • 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
  • 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

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 (fabdb6a, 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

Item Value
CPUs AMD Ryzen 9 5900X 12-Core Processor (24 x 3693)
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
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%
Extensions (12)
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
A/B Experiments
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

@vs-code-engineering vs-code-engineering bot added the new release Issues found in a recent release of VS Code label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new release Issues found in a recent release of VS Code
Projects
None yet
Development

No branches or pull requests

2 participants