mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
Remove 'grant access' badge when done, fixes #115950
This commit is contained in:
parent
7323c52084
commit
01a3787cca
|
@ -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) {
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue