mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 01:37:20 +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
1 changed files with 1 additions and 0 deletions
|
@ -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.`);
|
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 {
|
try {
|
||||||
const itoken = await this.doRefreshToken(token.refreshToken, scopeData);
|
const itoken = await this.doRefreshToken(token.refreshToken, scopeData);
|
||||||
|
this._sessionChangeEmitter.fire({ added: [this.convertToSessionSync(itoken)], removed: [], changed: [] });
|
||||||
matchingTokens.push(itoken);
|
matchingTokens.push(itoken);
|
||||||
} catch (err) {
|
} 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}`);
|
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