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

This reverts commit a18ea9c9ec.
This commit is contained in:
Tyler James Leonhardt
2021-05-26 10:42:20 -07:00
committed by GitHub
parent 9464d14f31
commit 7f21b1af48
5 changed files with 14 additions and 163 deletions

View File

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