Skip to content

Commit 30c5902

Browse files
Remove old reference of adding providers contributed by the environment (microsoft#229895)
This code should have been removed when we moved this exact code into: https://github.com/microsoft/vscode/blob/6486ae847d16c00fc9b50a360c24408aa150d8bb/src/vs/workbench/services/authentication/browser/authenticationService.ts#L93-L100
1 parent 6486ae8 commit 30c5902

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/vs/workbench/contrib/authentication/browser/authentication.contribution.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,7 @@ class AuthenticationContribution extends Disposable implements IWorkbenchContrib
117117
},
118118
});
119119

120-
constructor(
121-
@IAuthenticationService private readonly _authenticationService: IAuthenticationService,
122-
@IBrowserWorkbenchEnvironmentService private readonly _environmentService: IBrowserWorkbenchEnvironmentService
123-
) {
120+
constructor(@IAuthenticationService private readonly _authenticationService: IAuthenticationService) {
124121
super();
125122
this._register(codeExchangeProxyCommand);
126123
this._register(extensionFeature);
@@ -131,7 +128,6 @@ class AuthenticationContribution extends Disposable implements IWorkbenchContrib
131128
}
132129
this._registerHandlers();
133130
this._registerAuthenticationExtentionPointHandler();
134-
this._registerEnvContributedAuthenticationProviders();
135131
this._registerActions();
136132
}
137133

@@ -167,15 +163,6 @@ class AuthenticationContribution extends Disposable implements IWorkbenchContrib
167163
});
168164
}
169165

170-
private _registerEnvContributedAuthenticationProviders(): void {
171-
if (!this._environmentService.options?.authenticationProviders?.length) {
172-
return;
173-
}
174-
for (const provider of this._environmentService.options.authenticationProviders) {
175-
this._authenticationService.registerAuthenticationProvider(provider.id, provider);
176-
}
177-
}
178-
179166
private _registerHandlers(): void {
180167
this._register(this._authenticationService.onDidRegisterAuthenticationProvider(_e => {
181168
this._clearPlaceholderMenuItem();

0 commit comments

Comments
 (0)