chore - cleanup registerSingleton service usages

This commit is contained in:
Benjamin Pasero
2021-02-26 15:56:37 +01:00
parent bd272ea6b7
commit c41922bf42
10 changed files with 56 additions and 40 deletions

View File

@@ -3,7 +3,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
import { UserDataAutoSyncEnablementService } from 'vs/platform/userDataSync/common/userDataAutoSyncService';
import { IUserDataAutoSyncEnablementService } from 'vs/platform/userDataSync/common/userDataSync';
import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService';
export class WebUserDataAutoSyncEnablementService extends UserDataAutoSyncEnablementService {
@@ -44,5 +46,6 @@ export class WebUserDataAutoSyncEnablementService extends UserDataAutoSyncEnable
private isTrusted(): boolean {
return !!this.workbenchEnvironmentService.options?.workspaceProvider?.trusted;
}
}
registerSingleton(IUserDataAutoSyncEnablementService, WebUserDataAutoSyncEnablementService);