Skip to content

Commit 316fb89

Browse files
authored
enable syncing profiles in stable (microsoft#167424)
1 parent 0a6d198 commit 316fb89

File tree

3 files changed

+1
-20
lines changed

3 files changed

+1
-20
lines changed

src/vs/base/common/product.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,6 @@ export interface IProductConfiguration {
160160

161161
readonly 'editSessions.store'?: Omit<ConfigurationSyncStore, 'insidersUrl' | 'stableUrl'>;
162162
readonly darwinUniversalAssetId?: string;
163-
164-
// experimental
165-
readonly enableSyncingProfiles?: boolean;
166163
}
167164

168165
export interface ITunnelApplicationConfig {

src/vs/platform/userDataSync/common/userDataSyncService.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ import { isBoolean, isUndefined } from 'vs/base/common/types';
1414
import { URI } from 'vs/base/common/uri';
1515
import { generateUuid } from 'vs/base/common/uuid';
1616
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
17-
import { IEnvironmentService } from 'vs/platform/environment/common/environment';
1817
import { IExtensionGalleryService } from 'vs/platform/extensionManagement/common/extensionManagement';
1918
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
20-
import { IProductService } from 'vs/platform/product/common/productService';
2119
import { IStorageService, StorageScope, StorageTarget } from 'vs/platform/storage/common/storage';
2220
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
2321
import { IUserDataProfile, IUserDataProfilesService } from 'vs/platform/userDataProfile/common/userDataProfile';
@@ -91,8 +89,6 @@ export class UserDataSyncService extends Disposable implements IUserDataSyncServ
9189
@IStorageService private readonly storageService: IStorageService,
9290
@IUserDataSyncEnablementService private readonly userDataSyncEnablementService: IUserDataSyncEnablementService,
9391
@IUserDataProfilesService private readonly userDataProfilesService: IUserDataProfilesService,
94-
@IProductService private readonly productService: IProductService,
95-
@IEnvironmentService private readonly environmentService: IEnvironmentService,
9692
@IUserDataSyncResourceProviderService private readonly userDataSyncResourceProviderService: IUserDataSyncResourceProviderService,
9793
) {
9894
super();
@@ -418,10 +414,6 @@ export class UserDataSyncService extends Disposable implements IUserDataSyncServ
418414
return null;
419415
}
420416

421-
if (this.environmentService.isBuilt && (!this.productService.enableSyncingProfiles || isEqual(this.userDataSyncStoreManagementService.userDataSyncStore?.url, this.userDataSyncStoreManagementService.userDataSyncStore?.stableUrl))) {
422-
return null;
423-
}
424-
425417
const userDataProfileManifestSynchronizer = disposables.add(this.instantiationService.createInstance(UserDataProfilesManifestSynchroniser, profile, undefined));
426418
const manifest = await this.userDataSyncStoreService.manifest(null);
427419
const syncProfiles = (await userDataProfileManifestSynchronizer.getRemoteSyncedProfiles(manifest?.latest ?? null)) || [];
@@ -546,10 +538,8 @@ class ProfileSynchronizer extends Disposable {
546538
@IUserDataSyncStoreManagementService private readonly userDataSyncStoreManagementService: IUserDataSyncStoreManagementService,
547539
@ITelemetryService private readonly telemetryService: ITelemetryService,
548540
@IUserDataSyncLogService private readonly logService: IUserDataSyncLogService,
549-
@IProductService private readonly productService: IProductService,
550541
@IUserDataProfilesService private readonly userDataProfilesService: IUserDataProfilesService,
551542
@IConfigurationService private readonly configurationService: IConfigurationService,
552-
@IEnvironmentService private readonly environmentService: IEnvironmentService,
553543
) {
554544
super();
555545
this._register(userDataSyncEnablementService.onDidChangeResourceEnablement(([syncResource, enablement]) => this.onDidChangeResourceEnablement(syncResource, enablement)));
@@ -584,10 +574,6 @@ class ProfileSynchronizer extends Disposable {
584574
if (!this.userDataProfilesService.isEnabled()) {
585575
return;
586576
}
587-
if (this.environmentService.isBuilt && (!this.productService.enableSyncingProfiles || isEqual(this.userDataSyncStoreManagementService.userDataSyncStore?.url, this.userDataSyncStoreManagementService.userDataSyncStore?.stableUrl))) {
588-
this.logService.debug('Skipping profiles sync');
589-
return;
590-
}
591577
}
592578
const disposables = new DisposableStore();
593579
const synchronizer = disposables.add(this.createSynchronizer(syncResource));

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ import { IHostService } from 'vs/workbench/services/host/browser/host';
5353
import { IUserDataProfilesService } from 'vs/platform/userDataProfile/common/userDataProfile';
5454
import { ITextFileService } from 'vs/workbench/services/textfile/common/textfiles';
5555
import { ctxIsMergeResultEditor, ctxMergeBaseUri } from 'vs/workbench/contrib/mergeEditor/common/mergeEditor';
56-
import { IEnvironmentService } from 'vs/platform/environment/common/environment';
5756

5857
type ConfigureSyncQuickPickItem = { id: SyncResource; label: string; description?: string };
5958

@@ -116,7 +115,6 @@ export class UserDataSyncWorkbenchContribution extends Disposable implements IWo
116115
@IAuthenticationService private readonly authenticationService: IAuthenticationService,
117116
@IUserDataSyncStoreManagementService private readonly userDataSyncStoreManagementService: IUserDataSyncStoreManagementService,
118117
@IConfigurationService private readonly configurationService: IConfigurationService,
119-
@IEnvironmentService private readonly environmentService: IEnvironmentService,
120118
@IHostService private readonly hostService: IHostService
121119
) {
122120
super();
@@ -552,7 +550,7 @@ export class UserDataSyncWorkbenchContribution extends Disposable implements IWo
552550
id: SyncResource.GlobalState,
553551
label: getSyncAreaLabel(SyncResource.GlobalState),
554552
}];
555-
if (this.userDataProfilesService.isEnabled() && (!this.environmentService.isBuilt || this.productService.enableSyncingProfiles)) {
553+
if (this.userDataProfilesService.isEnabled()) {
556554
result.push({
557555
id: SyncResource.Profiles,
558556
label: getSyncAreaLabel(SyncResource.Profiles),

0 commit comments

Comments
 (0)