Allow extensions to create multiple sessions from the same provider (#124640)

This commit is contained in:
Tyler James Leonhardt
2021-05-25 20:02:19 -07:00
committed by GitHub
parent 21162bfb68
commit a18ea9c9ec
5 changed files with 163 additions and 14 deletions

View File

@@ -68,7 +68,8 @@ export class ExtHostAuthentication implements ExtHostAuthenticationShape {
this._inFlightRequests.set(extensionId, inFlightRequests);
try {
await session;
const s = await session;
return s;
} finally {
const requestIndex = inFlightRequests.findIndex(request => request.scopes === sortedScopes);
if (requestIndex > -1) {
@@ -76,8 +77,6 @@ export class ExtHostAuthentication implements ExtHostAuthenticationShape {
this._inFlightRequests.set(extensionId, inFlightRequests);
}
}
return session;
}
}