Skip to content

All shortcuts are gone after enabling settings sync #124262

@mmatrosov

Description

@mmatrosov

Simplified steps to repro:

  • From Machine 1 (say MacOS), Set "settingsSync.keybindingsPerPlatform": false
  • From Machine 1 Make some keyboard shortcuts
  • From Machine 1 Enable Settings Sync
  • From Machine 2 (say Windows), enable settings sync

🐛 Keyboard shortcuts are reset

Original steps from author:
  • VS Code Version:
Version: 1.56.2
Commit: 054a9295330880ed74ceaedda236253b4f39a335
Date: 2021-05-12T16:45:26.313Z
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
V8: 8.9.255.24-electron.0
OS: Linux x64 5.8.0-50-generic snap
  • OS Version: Ubuntu 20.04

Steps to Reproduce:

  1. Make some custom shortcuts
  2. (not sure if necessary) Set "settingsSync.keybindingsPerPlatform": false
  3. Enable settings sync
  4. (not sure if necessary) Enable settings sync on another host

See how all custom shortcuts are gone. /home/mmatrosov/.config/Code/User/keybindings.json file contains an empty array: [].

  • Another host VS Code Version:
Version: 1.56.2 (user setup)
Commit: 054a9295330880ed74ceaedda236253b4f39a335
Date: 2021-05-12T17:13:13.157Z
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
V8: 8.9.255.24-electron.0
OS: Windows_NT x64 10.0.18363
  • Another host OS Version: Windows 10, v1909

Then I tried to add custom shortcuts again, and they are synced successfully in both directions, I can see how keybindings.json is being updated automatically. Which is nice, but is there a way I can bring old mappings back? I only backed up Settings.json file, and seems they are not stored there...

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code Insiderssettings-syncverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions