From 9cc09931cdc08c586381eb19bc5050008e601ff7 Mon Sep 17 00:00:00 2001 From: Rachel Macfarlane Date: Wed, 2 Sep 2020 13:55:29 -0700 Subject: [PATCH] Fix #105895, duplicate auth providers in vscode.authentication.providers --- src/vs/workbench/api/common/extHostAuthentication.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/api/common/extHostAuthentication.ts b/src/vs/workbench/api/common/extHostAuthentication.ts index c7dd0f2d5b2..a14f69ee63e 100644 --- a/src/vs/workbench/api/common/extHostAuthentication.ts +++ b/src/vs/workbench/api/common/extHostAuthentication.ts @@ -187,9 +187,9 @@ export class ExtHostAuthentication implements ExtHostAuthenticationShape { } $onDidChangeAuthenticationProviders(added: modes.AuthenticationProviderInformation[], removed: modes.AuthenticationProviderInformation[]) { - added.forEach(id => { - if (!this._providers.includes(id)) { - this._providers.push(id); + added.forEach(provider => { + if (!this._providers.some(p => p.id === provider.id)) { + this._providers.push(provider); } });