mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
Invoke session change emitter when session is created in getSession (#192828)
fixes https://github.com/microsoft/vscode/issues/192806
This commit is contained in:
parent
01f471f25c
commit
379d31d162
|
@ -260,6 +260,7 @@ export class AzureActiveDirectoryService {
|
|||
this._logger.trace(`[${scopeData.scopeStr}] '${token.sessionId}' Found a matching token with a different scopes '${token.scope}'. Attempting to get a new session using the existing session.`);
|
||||
try {
|
||||
const itoken = await this.doRefreshToken(token.refreshToken, scopeData);
|
||||
this._sessionChangeEmitter.fire({ added: [this.convertToSessionSync(itoken)], removed: [], changed: [] });
|
||||
matchingTokens.push(itoken);
|
||||
} catch (err) {
|
||||
this._logger.error(`[${scopeData.scopeStr}] Attempted to get a new session using the existing session with scopes '${token.scope}' but it failed due to: ${err.message ?? err}`);
|
||||
|
|
Loading…
Reference in a new issue