mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
chore - cleanup registerSingleton service usages
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user