mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
Allow extensions to create multiple sessions from the same provider (#124640)
This commit is contained in:
committed by
GitHub
parent
21162bfb68
commit
a18ea9c9ec
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user