Skip to content

Commit

Permalink
Remove 'grant access' badge when done, fixes #115950
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachel Macfarlane committed Feb 6, 2021
1 parent 7323c52 commit 01a3787
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,6 @@ export class AuthenticationService extends Disposable implements IAuthentication
Object.keys(accessRequests).forEach(extensionId => {
this.removeAccessRequest(id, extensionId);
});

this.updateBadgeCount();
}

if (!this._authenticationProviders.size) {
Expand Down Expand Up @@ -424,6 +422,7 @@ export class AuthenticationService extends Disposable implements IAuthentication
if (providerRequests[extensionId]) {
providerRequests[extensionId].disposables.forEach(d => d.dispose());
delete providerRequests[extensionId];
this.updateBadgeCount();
}
}

Expand Down Expand Up @@ -457,9 +456,9 @@ export class AuthenticationService extends Disposable implements IAuthentication
if (allow) {
allowList.push({ id: extensionId, name: extensionName });
this.storageService.store(`${providerId}-${accountName}`, JSON.stringify(allowList), StorageScope.GLOBAL, StorageTarget.USER);
this.removeAccessRequest(providerId, extensionId);
}

this.removeAccessRequest(providerId, extensionId);
return allow;
}

Expand Down Expand Up @@ -505,9 +504,9 @@ export class AuthenticationService extends Disposable implements IAuthentication
if (!allowList.find(allowed => allowed.id === extensionId)) {
allowList.push({ id: extensionId, name: extensionName });
this.storageService.store(`${providerId}-${accountName}`, JSON.stringify(allowList), StorageScope.GLOBAL, StorageTarget.USER);
this.removeAccessRequest(providerId, extensionId);
}

this.removeAccessRequest(providerId, extensionId);
this.storageService.store(`${extensionName}-${providerId}`, session.id, StorageScope.GLOBAL, StorageTarget.MACHINE);

quickPick.dispose();
Expand Down

0 comments on commit 01a3787

Please sign in to comment.