Skip to content

Commit 9cc0993

Browse files
author
Rachel Macfarlane
committed
Fix microsoft#105895, duplicate auth providers in vscode.authentication.providers
1 parent 79de645 commit 9cc0993

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/vs/workbench/api/common/extHostAuthentication.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ export class ExtHostAuthentication implements ExtHostAuthenticationShape {
187187
}
188188

189189
$onDidChangeAuthenticationProviders(added: modes.AuthenticationProviderInformation[], removed: modes.AuthenticationProviderInformation[]) {
190-
added.forEach(id => {
191-
if (!this._providers.includes(id)) {
192-
this._providers.push(id);
190+
added.forEach(provider => {
191+
if (!this._providers.some(p => p.id === provider.id)) {
192+
this._providers.push(provider);
193193
}
194194
});
195195

0 commit comments

Comments
 (0)