mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
move settings sync options into single interface
This commit is contained in:
@@ -14,7 +14,7 @@ export class WebUserDataAutoSyncService extends UserDataAutoSyncService implemen
|
||||
|
||||
isEnabled(): boolean {
|
||||
if (this.enabled === undefined) {
|
||||
this.enabled = this.workbenchEnvironmentService.options?.enableSettingsSync;
|
||||
this.enabled = this.workbenchEnvironmentService.options?.settingsSyncOptions?.enabled;
|
||||
}
|
||||
if (this.enabled === undefined) {
|
||||
this.enabled = super.isEnabled(this.workbenchEnvironmentService.options?.enableSyncByDefault);
|
||||
@@ -25,8 +25,8 @@ export class WebUserDataAutoSyncService extends UserDataAutoSyncService implemen
|
||||
protected setEnablement(enabled: boolean) {
|
||||
if (this.enabled !== enabled) {
|
||||
this.enabled = enabled;
|
||||
if (this.workbenchEnvironmentService.options?.settingsSyncEnablementHandler) {
|
||||
this.workbenchEnvironmentService.options.settingsSyncEnablementHandler(this.enabled);
|
||||
if (this.workbenchEnvironmentService.options?.settingsSyncOptions?.enablementHandler) {
|
||||
this.workbenchEnvironmentService.options.settingsSyncOptions.enablementHandler(this.enabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user