File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,6 +138,8 @@ export default abstract class BaseDeepCodeModule implements DeepCode.BaseDeepCod
138138
139139 // Leave viewId undefined to remove the badge from all views
140140 async setLoadingBadge ( value : boolean ) : Promise < void > {
141+ console . error ( "setLoadingBadge" , value ) ;
142+ if ( this . progressBadgeResolveFn ) this . progressBadgeResolveFn ( ) ;
141143 if ( value ) {
142144 // Using closure on this to allow partial binding in arbitrary positions
143145 const self = this ;
@@ -151,7 +153,6 @@ export default abstract class BaseDeepCodeModule implements DeepCode.BaseDeepCod
151153 } )
152154 ) ;
153155 } else {
154- if ( this . progressBadgeResolveFn ) this . progressBadgeResolveFn ( ) ;
155156 this . progressBadgePromise = undefined ;
156157 this . progressBadgeResolveFn = undefined ;
157158 }
Original file line number Diff line number Diff line change @@ -44,14 +44,14 @@ abstract class LoginModule extends ReportModule implements DeepCode.LoginModuleI
4444 if ( this . token ) {
4545 try {
4646 validSession = ! ! ( await http . checkSession ( this . baseURL , this . token ) ) ;
47- if ( ! validSession ) await this . setLoadingBadge ( true ) ;
4847 } catch ( err ) {
4948 await this . processError ( err , {
5049 message : errorsLogs . loginStatus
5150 } ) ;
5251 }
5352 }
5453 await this . setContext ( DEEPCODE_CONTEXT . LOGGEDIN , validSession ) ;
54+ if ( ! validSession ) await this . setLoadingBadge ( true ) ;
5555 return validSession ;
5656 }
5757
You can’t perform that action at this time.
0 commit comments