File tree Expand file tree Collapse file tree
src/vs/platform/userDataSync/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,10 +89,10 @@ export abstract class AbstractSynchroniser extends Disposable {
8989 }
9090 }
9191
92- protected get enabled ( ) : boolean { return this . userDataSyncEnablementService . isResourceEnabled ( this . resourceKey ) ; }
92+ protected isEnabled ( ) : boolean { return this . userDataSyncEnablementService . isResourceEnabled ( this . resourceKey ) ; }
9393
9494 async sync ( ref ?: string ) : Promise < void > {
95- if ( ! this . enabled ) {
95+ if ( ! this . isEnabled ( ) ) {
9696 this . logService . info ( `${ this . source } : Skipped synchronizing ${ this . source . toLowerCase ( ) } as it is disabled.` ) ;
9797 return ;
9898 }
@@ -348,7 +348,7 @@ export abstract class AbstractFileSynchroniser extends AbstractSynchroniser {
348348 return ;
349349 }
350350
351- if ( ! this . enabled ) {
351+ if ( ! this . isEnabled ( ) ) {
352352 return ;
353353 }
354354
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export class ExtensionsSynchroniser extends AbstractSynchroniser implements IUse
3737
3838 readonly resourceKey : ResourceKey = 'extensions' ;
3939 protected readonly version : number = 2 ;
40- protected get enabled ( ) : boolean { return super . enabled && this . extensionGalleryService . isEnabled ( ) ; }
40+ protected isEnabled ( ) : boolean { return super . isEnabled ( ) && this . extensionGalleryService . isEnabled ( ) ; }
4141
4242 constructor (
4343 @IEnvironmentService environmentService : IEnvironmentService ,
@@ -62,7 +62,7 @@ export class ExtensionsSynchroniser extends AbstractSynchroniser implements IUse
6262 }
6363
6464 async pull ( ) : Promise < void > {
65- if ( ! this . enabled ) {
65+ if ( ! this . isEnabled ( ) ) {
6666 this . logService . info ( 'Extensions: Skipped pulling extensions as it is disabled.' ) ;
6767 return ;
6868 }
@@ -95,7 +95,7 @@ export class ExtensionsSynchroniser extends AbstractSynchroniser implements IUse
9595 }
9696
9797 async push ( ) : Promise < void > {
98- if ( ! this . enabled ) {
98+ if ( ! this . isEnabled ( ) ) {
9999 this . logService . info ( 'Extensions: Skipped pushing extensions as it is disabled.' ) ;
100100 return ;
101101 }
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export class GlobalStateSynchroniser extends AbstractSynchroniser implements IUs
4747 }
4848
4949 async pull ( ) : Promise < void > {
50- if ( ! this . enabled ) {
50+ if ( ! this . isEnabled ( ) ) {
5151 this . logService . info ( 'UI State: Skipped pulling ui state as it is disabled.' ) ;
5252 return ;
5353 }
@@ -79,7 +79,7 @@ export class GlobalStateSynchroniser extends AbstractSynchroniser implements IUs
7979 }
8080
8181 async push ( ) : Promise < void > {
82- if ( ! this . enabled ) {
82+ if ( ! this . isEnabled ( ) ) {
8383 this . logService . info ( 'UI State: Skipped pushing UI State as it is disabled.' ) ;
8484 return ;
8585 }
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export class KeybindingsSynchroniser extends AbstractJsonFileSynchroniser implem
4747 }
4848
4949 async pull ( ) : Promise < void > {
50- if ( ! this . enabled ) {
50+ if ( ! this . isEnabled ( ) ) {
5151 this . logService . info ( 'Keybindings: Skipped pulling keybindings as it is disabled.' ) ;
5252 return ;
5353 }
@@ -89,7 +89,7 @@ export class KeybindingsSynchroniser extends AbstractJsonFileSynchroniser implem
8989 }
9090
9191 async push ( ) : Promise < void > {
92- if ( ! this . enabled ) {
92+ if ( ! this . isEnabled ( ) ) {
9393 this . logService . info ( 'Keybindings: Skipped pushing keybindings as it is disabled.' ) ;
9494 return ;
9595 }
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export class SettingsSynchroniser extends AbstractJsonFileSynchroniser implement
7777 }
7878
7979 async pull ( ) : Promise < void > {
80- if ( ! this . enabled ) {
80+ if ( ! this . isEnabled ( ) ) {
8181 this . logService . info ( 'Settings: Skipped pulling settings as it is disabled.' ) ;
8282 return ;
8383 }
@@ -123,7 +123,7 @@ export class SettingsSynchroniser extends AbstractJsonFileSynchroniser implement
123123 }
124124
125125 async push ( ) : Promise < void > {
126- if ( ! this . enabled ) {
126+ if ( ! this . isEnabled ( ) ) {
127127 this . logService . info ( 'Settings: Skipped pushing settings as it is disabled.' ) ;
128128 return ;
129129 }
You can’t perform that action at this time.
0 commit comments