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(
|
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();
|
||||||
|
|
Loading…
Reference in a new issue