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

Replace remote extensions is merging extensions while turning on sync #168779

Open
1Euro7Cent opened this issue Dec 11, 2022 · 5 comments
Open

Replace remote extensions is merging extensions while turning on sync #168779

1Euro7Cent opened this issue Dec 11, 2022 · 5 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug settings-sync
Milestone

Comments

@1Euro7Cent
Copy link

Does this issue occur when all extensions are disabled?: Yes

Version: 1.74.0 (user setup)
Commit: 5235c6b
Date: 2022-12-05T16:38:16.075Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.19044
Sandboxed: No

Steps to Reproduce:

  1. have a settings sync on GitHub.
  2. have a new install of VS Code
  3. on the new install configure it manually
  4. turn sync on and replace the cloud version (keep local changes)
  5. see that VS Code installs all extensions and changes all settings locally to the cloud ones

I cannot even recover since it only keeps cloud sync backed up

I can now reinstall VS Code and completely reconfigure it because that sync broke something in VS Code

@sandy081
Copy link
Member

May I know what local changes are overridden? Is it settings, extensions or something else? Can you be able to repro it? If so, can you please share following log on the machine where you are able to repro

  • F1 > Open View... > Settings Sync

If you can't, can you please share all logs from this folder on the machine where it happened?

  • F1 > Developer: Open Logs Folder

@sandy081 sandy081 added info-needed Issue requires more information from poster settings-sync labels Dec 12, 2022
@1Euro7Cent
Copy link
Author

May I know what local changes are overridden? Is it settings, extensions or something else?

Everything synced was overwritten. This includes key binds, extensions and the settings.json. The UI too. But I didn't had any change

I don't know what repo it means (in this case)

F1 > Open View... > Settings Sync

2022-12-12 15:34:57.290 [info] Using settings sync service https://vscode-sync.trafficmanager.net/
2022-12-12 15:34:57.290 [info] Auto Sync is enabled.
2022-12-12 15:34:57.290 [info] Auto Sync: Suspended until auth token is available.
2022-12-12 15:35:14.544 [info] Auto Sync: Triggered by Interval
2022-12-12 15:35:14.545 [info] Sync started.
2022-12-12 15:35:14.971 [info] Profiles: No changes found during synchronizing profiles.
2022-12-12 15:35:15.004 [info] Settings: No changes found during synchronizing settings.
2022-12-12 15:35:15.012 [info] Keybindings: No changes found during synchronizing keybindings.
2022-12-12 15:35:15.017 [info] Snippets: No changes found during synchronizing snippets.
2022-12-12 15:35:15.020 [info] Tasks: No changes found during synchronizing tasks.
2022-12-12 15:35:15.184 [info] GlobalState: Updated remote ui state. Updated: cpp.1.lastSessionDate,cpp.1.sessionCount,java.2.lastSessionDate,java.2.sessionCount,typescript.1.lastSessionDate,typescript.1.sessionCount,workbench.activity.pinnedViewlets2,workbench.panel.pinnedPanels.
2022-12-12 15:35:15.189 [info] GlobalState: Updated last synchronized ui state
2022-12-12 15:35:15.323 [info] Extensions: No changes found during synchronizing extensions.
2022-12-12 15:35:15.326 [info] Sync done. Took 782ms
2022-12-12 15:35:26.465 [info] Auto Sync: Triggered by Activity
2022-12-12 15:35:26.466 [info] Sync started.
2022-12-12 15:35:26.547 [info] Profiles: No changes found during synchronizing profiles.
2022-12-12 15:35:26.565 [info] Settings: No changes found during synchronizing settings.
2022-12-12 15:35:26.571 [info] Keybindings: No changes found during synchronizing keybindings.
2022-12-12 15:35:26.575 [info] Snippets: No changes found during synchronizing snippets.
2022-12-12 15:35:26.578 [info] Tasks: No changes found during synchronizing tasks.
2022-12-12 15:35:26.730 [info] GlobalState: Updated remote ui state. Updated: commandPalette.mru.cache,commandPalette.mru.counter.
2022-12-12 15:35:26.735 [info] GlobalState: Updated last synchronized ui state
2022-12-12 15:35:26.860 [info] Extensions: No changes found during synchronizing extensions.
2022-12-12 15:35:26.863 [info] Sync done. Took 398ms

If you can't, can you please share all logs from this folder on the machine where it happened?

F1 > Developer: Open Logs Folder

It happened yesterday. I zipped all logs folders that where created on that day. Most likely on the last one
logs.zip

@sandy081
Copy link
Member

I don't know what repo it means (in this case)

You can do following:

  • Open VS Code from a fresh user data dir and extensions dir. You can do it from command line using following command- code --user-data-dir <temp_folder> --extensions-dir <temp_folder>
  • configure it manually
  • turn sync on and replace the cloud version (keep local changes)

Please record a gif/video while turning on sync and share with us.

@1Euro7Cent
Copy link
Author

turn sync on and replace the cloud version (keep local changes)

For me that means replace remote. (replace the remote with the local)
I didn't know if that is a misunderstanding, but the exact same thing happened to my dad

2022-12-13.15-42-57.mp4

@sandy081 sandy081 changed the title Enabled syncing and lost all configs Replace remote extensions is merging extensions while turning on sync Dec 13, 2022
@sandy081
Copy link
Member

I can repro it but only extensions are getting merged instead of replaced.

@sandy081 sandy081 added bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels Dec 13, 2022
@sandy081 sandy081 added this to the January 2023 milestone Dec 13, 2022
@sandy081 sandy081 modified the milestones: January 2023, February 2023 Jan 23, 2023
@sandy081 sandy081 modified the milestones: February 2023, March 2023 Feb 20, 2023
@sandy081 sandy081 modified the milestones: March 2023, April 2023 Mar 20, 2023
@sandy081 sandy081 modified the milestones: April 2023, May 2023 Apr 24, 2023
@sandy081 sandy081 modified the milestones: May 2023, June 2023 May 31, 2023
@sandy081 sandy081 modified the milestones: June 2023, July 2023 Jun 26, 2023
@sandy081 sandy081 modified the milestones: July 2023, Backlog Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug settings-sync
Projects
None yet
Development

No branches or pull requests

2 participants