@@ -63,7 +63,14 @@ export abstract class AbstractUpdateService implements IUpdateService {
6363 * https://github.com/microsoft/vscode/issues/89784
6464 */
6565 protected async initialize ( ) : Promise < void > {
66+ this . logService . info ( 'update#initialize - starting initialization' ) ;
67+ this . logService . info ( `update#initialize - isBuilt: ${ this . environmentMainService . isBuilt } ` ) ;
68+ this . logService . info ( `update#initialize - updateUrl: ${ this . productService . updateUrl } ` ) ;
69+ this . logService . info ( `update#initialize - commit: ${ this . productService . commit } ` ) ;
70+ this . logService . info ( `update#initialize - quality: ${ this . productService . quality } ` ) ;
71+
6672 if ( ! this . environmentMainService . isBuilt ) {
73+ this . logService . warn ( 'update#initialize - DISABLED: Not a built version (VSCODE_DEV is set)' ) ;
6774 this . setState ( State . Disabled ( DisablementReason . NotBuilt ) ) ;
6875 return ; // updates are never enabled when running out of sources
6976 }
@@ -75,22 +82,27 @@ export abstract class AbstractUpdateService implements IUpdateService {
7582 }
7683
7784 if ( ! this . productService . updateUrl || ! this . productService . commit ) {
85+ this . logService . warn ( `update#initialize - DISABLED: Missing configuration (updateUrl: ${ ! ! this . productService . updateUrl } , commit: ${ ! ! this . productService . commit } )` ) ;
7886 this . setState ( State . Disabled ( DisablementReason . MissingConfiguration ) ) ;
7987 this . logService . info ( 'update#ctor - updates are disabled as there is no update URL' ) ;
8088 return ;
8189 }
8290
8391 const updateMode = this . configurationService . getValue < 'none' | 'manual' | 'start' | 'default' > ( 'update.mode' ) ;
8492 const quality = this . getProductQuality ( updateMode ) ;
93+ this . logService . info ( `update#initialize - updateMode: ${ updateMode } , quality: ${ quality } ` ) ;
8594
8695 if ( ! quality ) {
96+ this . logService . warn ( 'update#initialize - DISABLED: User preference (update.mode = none)' ) ;
8797 this . setState ( State . Disabled ( DisablementReason . ManuallyDisabled ) ) ;
8898 this . logService . info ( 'update#ctor - updates are disabled by user preference' ) ;
8999 return ;
90100 }
91101
92102 this . url = this . buildUpdateFeedUrl ( quality ) ;
103+ this . logService . info ( `update#initialize - built URL: ${ this . url } ` ) ;
93104 if ( ! this . url ) {
105+ this . logService . warn ( 'update#initialize - DISABLED: Could not build update feed URL' ) ;
94106 this . setState ( State . Disabled ( DisablementReason . InvalidConfiguration ) ) ;
95107 this . logService . info ( 'update#ctor - updates are disabled as the update URL is badly formed' ) ;
96108 return ;
@@ -103,6 +115,7 @@ export abstract class AbstractUpdateService implements IUpdateService {
103115 this . url = url . toString ( ) ;
104116 }
105117
118+ this . logService . info ( 'update#initialize - SUCCESS: Setting state to Idle, updates ENABLED' ) ;
106119 this . setState ( State . Idle ( this . getUpdateType ( ) ) ) ;
107120
108121 await this . postInitialize ( ) ;
0 commit comments