Repository: vscode
Issue: Settings Sync anomaly when syncing two devices from two networks
Labels: info-needed


Type: <b>Bug</b>

## The setup
I have two computers, they are connected to the internet through different ISPs (one wired, one cellular). I am running 2 instances of vscode on each computers. I am logged in with the same account on all four instances and settings syncing is turned on.

## The problem
When editing the settings either with the UI editor or with the `settings.json` file, the instances running on the same netwok have no problem syncing with each other. The instances on the different network will not sync, not even when forced with the "Settings Sync: Sync Now" command. When changing something on the "outdated" instance, it will report a conflict, resolving it will sync it so that other instances can sync it, but only "local" ones will sync automatically and without conflict, the instances on the other network will be the new "outdated" ones.

## Example 
Computer `A` and `B` are connected to different networks, and have the same account (Github) and profile (Default).
On each computer, there are two vscode instances: `A1`, `A2`, `B1`, `B2`. All extensions are disabled.

1) Changing a setting in `A1` will trigger a sync.
2) `A2` will detect and download the changes.
3) `B1` and `B2` will not:
```
Settings: No changes found during synchronizing settings.
```
4) Changing a setting in `B1` will trigger a sync and report a conflict:
```
Settings: Failed to synchronize as there is a new remote version available. Synchronizing again...
Settings: Detected conflicts while synchronizing settings.
```
5) After resolving the conflict on `B1` with either "Replace local" or "Replace remote", `B2` will sync and download the changes.
6) `A1` and `A2` will now act as `B1` and `B2` in step 3 

## Notes
When the two computers are connected to the same network (either one) all four vscode instances are syncing without a problem.

## System info
VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Linux x64 6.11.6-300.fc41.x86_64
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz (4 x 3392)|
|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: disabled_software<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off<br>webnn: disabled_off|
|Load (avg)|2, 2, 3|
|Memory (System)|15.57GB (6.34GB free)|
|Process Argv|--crash-reporter-id cb6a3ac5-b939-4ca1-92c6-fc345c0c601d|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|gnome|
|XDG_CURRENT_DESKTOP|GNOME|
|XDG_SESSION_DESKTOP|gnome|
|XDG_SESSION_TYPE|wayland|
</details>Extensions: none<details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
9c06g630:31013171
dvdeprecation:31068756
dwnewjupytercf:31046870
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31185841
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530

```

</details>

<!-- generated by issue reporter -->