File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
extensions/github-authentication/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -306,14 +306,15 @@ export class GitHubAuthenticationProvider implements vscode.AuthenticationProvid
306306 this . afterSessionLoad ( session ) ;
307307
308308 const sessionIndex = sessions . findIndex ( s => s . id === session . id || arrayEquals ( [ ...s . scopes ] . sort ( ) , sortedScopes ) ) ;
309+ const removed = new Array < vscode . AuthenticationSession > ( ) ;
309310 if ( sessionIndex > - 1 ) {
310- sessions . splice ( sessionIndex , 1 , session ) ;
311+ removed . push ( ... sessions . splice ( sessionIndex , 1 , session ) ) ;
311312 } else {
312313 sessions . push ( session ) ;
313314 }
314315 await this . storeSessions ( sessions ) ;
315316
316- this . _sessionChangeEmitter . fire ( { added : [ session ] , removed : [ ] , changed : [ ] } ) ;
317+ this . _sessionChangeEmitter . fire ( { added : [ session ] , removed, changed : [ ] } ) ;
317318
318319 this . _logger . info ( 'Login success!' ) ;
319320
You can’t perform that action at this time.
0 commit comments