mirror of
https://github.com/Microsoft/vscode
synced 2024-09-28 23:42:26 +00:00
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:
parent
6486ae847d
commit
30c5902aae
|
@ -117,10 +117,7 @@ class AuthenticationContribution extends Disposable implements IWorkbenchContrib
|
|||
},
|
||||
});
|
||||
|
||||
constructor(
|
||||
@IAuthenticationService private readonly _authenticationService: IAuthenticationService,
|
||||
@IBrowserWorkbenchEnvironmentService private readonly _environmentService: IBrowserWorkbenchEnvironmentService
|
||||
) {
|
||||
constructor(@IAuthenticationService private readonly _authenticationService: IAuthenticationService) {
|
||||
super();
|
||||
this._register(codeExchangeProxyCommand);
|
||||
this._register(extensionFeature);
|
||||
|
@ -131,7 +128,6 @@ class AuthenticationContribution extends Disposable implements IWorkbenchContrib
|
|||
}
|
||||
this._registerHandlers();
|
||||
this._registerAuthenticationExtentionPointHandler();
|
||||
this._registerEnvContributedAuthenticationProviders();
|
||||
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 {
|
||||
this._register(this._authenticationService.onDidRegisterAuthenticationProvider(_e => {
|
||||
this._clearPlaceholderMenuItem();
|
||||
|
|
Loading…
Reference in a new issue