|
6 | 6 | import { IUserDataSyncService, IAuthenticationProvider, getUserDataSyncStore, isAuthenticationProvider, IUserDataAutoSyncService, SyncResource, IResourcePreview, ISyncResourcePreview, Change, IManualSyncTask } from 'vs/platform/userDataSync/common/userDataSync'; |
7 | 7 | import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry'; |
8 | 8 | import { registerSingleton } from 'vs/platform/instantiation/common/extensions'; |
9 | | -import { IUserDataSyncWorkbenchService, IUserDataSyncAccount, AccountStatus, CONTEXT_SYNC_ENABLEMENT, CONTEXT_SYNC_STATE, CONTEXT_ACCOUNT_STATE, SHOW_SYNC_LOG_COMMAND_ID, getSyncAreaLabel, IUserDataSyncPreview, IUserDataSyncResource, CONTEXT_ENABLE_SYNC_MERGES_VIEW, SYNC_MERGES_VIEW_ID, CONTEXT_ENABLE_ACTIVITY_VIEWS, SYNC_VIEW_CONTAINER_ID } from 'vs/workbench/services/userDataSync/common/userDataSync'; |
| 9 | +import { IUserDataSyncWorkbenchService, IUserDataSyncAccount, AccountStatus, CONTEXT_SYNC_ENABLEMENT, CONTEXT_SYNC_STATE, CONTEXT_ACCOUNT_STATE, SHOW_SYNC_LOG_COMMAND_ID, getSyncAreaLabel, IUserDataSyncPreview, IUserDataSyncResource, CONTEXT_ENABLE_SYNC_MERGES_VIEW, SYNC_MERGES_VIEW_ID, CONTEXT_ENABLE_ACTIVITY_VIEWS, SYNC_VIEW_CONTAINER_ID, SYNC_TITLE } from 'vs/workbench/services/userDataSync/common/userDataSync'; |
10 | 10 | import { AuthenticationSession, AuthenticationSessionsChangeEvent } from 'vs/editor/common/modes'; |
11 | 11 | import { Disposable, DisposableStore } from 'vs/base/common/lifecycle'; |
12 | 12 | import { Emitter, Event } from 'vs/base/common/event'; |
@@ -203,9 +203,9 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat |
203 | 203 | let value: { token: string, authenticationProviderId: string } | undefined = undefined; |
204 | 204 | if (current) { |
205 | 205 | try { |
206 | | - this.logService.trace('Preferences Sync: Updating the token for the account', current.accountName); |
| 206 | + this.logService.trace('Settings Sync: Updating the token for the account', current.accountName); |
207 | 207 | const token = current.token; |
208 | | - this.logService.trace('Preferences Sync: Token updated for the account', current.accountName); |
| 208 | + this.logService.trace('Settings Sync: Token updated for the account', current.accountName); |
209 | 209 | value = { token, authenticationProviderId: current.authenticationProviderId }; |
210 | 210 | } catch (e) { |
211 | 211 | this.logService.error(e); |
@@ -236,8 +236,8 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat |
236 | 236 | throw new Error(localize('no account', "No account available")); |
237 | 237 | } |
238 | 238 |
|
239 | | - const preferencesSyncTitle = localize('preferences sync', "Preferences Sync"); |
240 | | - const title = `${preferencesSyncTitle} [(${localize('details', "details")})](command:${SHOW_SYNC_LOG_COMMAND_ID})`; |
| 239 | + const syncTitle = SYNC_TITLE; |
| 240 | + const title = `${syncTitle} [(${localize('details', "details")})](command:${SHOW_SYNC_LOG_COMMAND_ID})`; |
241 | 241 | await this.syncBeforeTurningOn(title); |
242 | 242 | await this.userDataAutoSyncService.turnOn(); |
243 | 243 | this.notificationService.info(localize('sync turned on', "{0} is turned on", title)); |
@@ -432,7 +432,7 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat |
432 | 432 | const quickPick = this.quickInputService.createQuickPick<AccountQuickPickItem>(); |
433 | 433 | disposables.add(quickPick); |
434 | 434 |
|
435 | | - quickPick.title = localize('pick an account', "Preferences Sync"); |
| 435 | + quickPick.title = SYNC_TITLE; |
436 | 436 | quickPick.ok = false; |
437 | 437 | quickPick.placeholder = localize('choose account placeholder', "Select an account"); |
438 | 438 | quickPick.ignoreFocusOut = true; |
@@ -501,7 +501,7 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat |
501 | 501 |
|
502 | 502 | this.notificationService.notify({ |
503 | 503 | severity: Severity.Error, |
504 | | - message: localize('successive auth failures', "Preferences sync was turned off because of successive authorization failures. Please sign in again to continue synchronizing"), |
| 504 | + message: localize('successive auth failures', "Settings sync was turned off because of successive authorization failures. Please sign in again to continue synchronizing"), |
505 | 505 | actions: { |
506 | 506 | primary: [new Action('sign in', localize('sign in', "Sign in"), undefined, true, () => this.signIn())] |
507 | 507 | } |
|
0 commit comments