Remove old reference of adding providers contributed by the environment (#229895)

This code should have been removed when we moved this exact code into:

6486ae847d/src/vs/workbench/services/authentication/browser/authenticationService.ts (L93-L100)
This commit is contained in:
Tyler James Leonhardt 2024-09-26 17:09:50 -07:00 committed by GitHub
parent 6486ae847d
commit 30c5902aae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,10 +117,7 @@ class AuthenticationContribution extends Disposable implements IWorkbenchContrib
}, },
}); });
constructor( constructor(@IAuthenticationService private readonly _authenticationService: IAuthenticationService) {
@IAuthenticationService private readonly _authenticationService: IAuthenticationService,
@IBrowserWorkbenchEnvironmentService private readonly _environmentService: IBrowserWorkbenchEnvironmentService
) {
super(); super();
this._register(codeExchangeProxyCommand); this._register(codeExchangeProxyCommand);
this._register(extensionFeature); this._register(extensionFeature);
@ -131,7 +128,6 @@ class AuthenticationContribution extends Disposable implements IWorkbenchContrib
} }
this._registerHandlers(); this._registerHandlers();
this._registerAuthenticationExtentionPointHandler(); this._registerAuthenticationExtentionPointHandler();
this._registerEnvContributedAuthenticationProviders();
this._registerActions(); this._registerActions();
} }
@ -167,15 +163,6 @@ class AuthenticationContribution extends Disposable implements IWorkbenchContrib
}); });
} }
private _registerEnvContributedAuthenticationProviders(): void {
if (!this._environmentService.options?.authenticationProviders?.length) {
return;
}
for (const provider of this._environmentService.options.authenticationProviders) {
this._authenticationService.registerAuthenticationProvider(provider.id, provider);
}
}
private _registerHandlers(): void { private _registerHandlers(): void {
this._register(this._authenticationService.onDidRegisterAuthenticationProvider(_e => { this._register(this._authenticationService.onDidRegisterAuthenticationProvider(_e => {
this._clearPlaceholderMenuItem(); this._clearPlaceholderMenuItem();