Skip to content

Commit 7a0884f

Browse files
committed
Update UserDataSyncErrorCode.TooLarge error message size
Related gitpod-io/gitpod#5329
1 parent a53d787 commit 7a0884f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export class UserDataSyncWorkbenchContribution extends Disposable implements IWo
329329
if (error.resource === SyncResource.Keybindings || error.resource === SyncResource.Settings) {
330330
this.disableSync(error.resource);
331331
const sourceArea = getSyncAreaLabel(error.resource);
332-
this.handleTooLargeError(error.resource, 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.toLowerCase(), sourceArea.toLowerCase(), '100kb'), error);
332+
this.handleTooLargeError(error.resource, 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.toLowerCase(), sourceArea.toLowerCase(), '1Mb'), error);
333333
}
334334
break;
335335
case UserDataSyncErrorCode.IncompatibleLocalContent:
@@ -532,7 +532,7 @@ export class UserDataSyncWorkbenchContribution extends Disposable implements IWo
532532
switch (e.code) {
533533
case UserDataSyncErrorCode.TooLarge:
534534
if (e.resource === SyncResource.Keybindings || e.resource === SyncResource.Settings) {
535-
this.handleTooLargeError(e.resource, localize('too large while starting sync', "Settings sync cannot be turned on because size of the {0} file to sync is larger than {1}. Please open the file and reduce the size and turn on sync", getSyncAreaLabel(e.resource).toLowerCase(), '100kb'), e);
535+
this.handleTooLargeError(e.resource, localize('too large while starting sync', "Settings sync cannot be turned on because size of the {0} file to sync is larger than {1}. Please open the file and reduce the size and turn on sync", getSyncAreaLabel(e.resource).toLowerCase(), '1Mb'), e);
536536
return;
537537
}
538538
break;

0 commit comments

Comments
 (0)