Skip to content

Commit 6874ecc

Browse files
committed
1 parent 5225915 commit 6874ecc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vs/workbench/contrib/userDataSync/browser/userDataSync.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,11 @@ export class UserDataSyncWorkbenchContribution extends Disposable implements IWo
402402
return;
403403
case UserDataSyncErrorCode.TooLarge:
404404
if (error.source === SyncSource.Keybindings || error.source === SyncSource.Settings) {
405+
this.disableSync(error.source);
405406
const sourceArea = getSyncAreaLabel(error.source);
406407
this.notificationService.notify({
407408
severity: Severity.Error,
408-
message: localize('too large', "Disabled sync {0} because size of the {1} file to sync is larger than {2}. Please open the file and reduce the size and enable sync", sourceArea, sourceArea, '100kb'),
409+
message: localize('too large', "Disabled syncing {0} because size of the {1} file to sync is larger than {2}. Please open the file and reduce the size and enable sync", sourceArea, sourceArea, '100kb'),
409410
actions: {
410411
primary: [new Action('open sync file', localize('open file', "Open {0} file", sourceArea), undefined, true,
411412
() => error.source === SyncSource.Settings ? this.preferencesService.openGlobalSettings(true) : this.preferencesService.openGlobalKeybindingSettings(true))]

0 commit comments

Comments
 (0)