microsoft / vscode

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

Enabling Settings Sync nuked settings. #182000

Closed carltongibson closed 1 year ago

carltongibson commented 1 year ago

Type: Bug

Filing report as requested by @brettcannon in this thread https://fosstodon.org/@carlton/110340026661594602

Was using code tunnel to access local environment on iPad.

The signin there isn't 100% smooth: the callback just sometimes stalls. When I tried adding to Homescreen, I had to use the device code fallback method to get the initial auth flow to complete, but I wasn't able to authenticate to the tunnel — blank white screen — and so went back to just using it in the normal (non-homescreen/PWA) browser.

Up and running I thought to Sync Settings. Enabled this.

Shortly after, returning to my Desktop device, all my settings and extensions were gone.

Slight panic.

I was able to restore with the Sync Settings history.

Expected behaviour is for Extensions to be Merged, not overwritten (certainly not with the blank state.) Update: I see the docs have a Merge or Replace section, and there's meant to be a UI for that (according to that) but none was ever shown to me in this case.

VS Code version: Code 1.78.1 (6a995c4f4cc2ced6e3237749973982e751cb0bf9, 2023-05-04T10:01:22.349Z) OS version: Darwin arm64 22.4.0 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Apple M1 Max (10 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|2, 2, 2| |Memory (System)|64.00GB (23.20GB free)| |Process Argv|--crash-reporter-id d20a1559-b0d4-4061-9e82-d0ceaf92d622| |Screen Reader|no| |VM|0%|
Extensions (21) Extension|Author (truncated)|Version ---|---|--- alpine-js-intellisense|adr|1.2.0 django-html|bib|1.3.0 vscode-tailwindcss|bra|0.9.11 better-toml|bun|0.3.2 gitlens|eam|13.5.0 codespaces|Git|1.14.7 copilot|Git|1.86.82 vscode-pull-request-github|Git|0.64.0 black-formatter|ms-|2023.2.0 flake8|ms-|2023.4.0 isort|ms-|2022.8.0 python|ms-|2023.8.0 vscode-pylance|ms-|2023.5.10 remote-wsl|ms-|0.78.4 toggle|reb|0.0.2 ansible|red|2.0.58 vscode-yaml|red|1.12.2 rust-analyzer|rus|0.3.1506 just|ske|2.0.0 rewrap|stk|1.16.3 tauri-vscode|tau|0.2.6 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263cf:30335440 vscorecescf:30445987 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdc:30486549 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 vscccc:30610679 3biah626:30602489 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 6233i204:30730053 vsccsb:30705552 azdwalk:30721579 pythonms35:30701012 pythonfmttext:30731395 pythoncmvfstr:30731969 fixhidewlkth:30730051 showsbindicator:30730056 ```
sandy081 commented 1 year ago

Shortly after, returning to my Desktop device, all my settings and extensions were gone.

Very sorry about this. We would like to understand what would have caused this. Since you know the settings sync data view, can you please check which machine has removed the data on the cloud?

carltongibson commented 1 year ago

I'm not able to dig into that. I guess I'll just close it.

I signed in on my iPad which nuked the settings on my Mac. Beyond that I can't say more.