Skip to content

Commit 6b2375b

Browse files
authored
Remove redundant "Successfully signed out" notification (microsoft#251512)
1 parent 8bb9840 commit 6b2375b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/vs/workbench/api/browser/mainThreadAuthentication.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export class MainThreadAuthenticationProvider extends Disposable implements IAut
5353
public readonly label: string,
5454
public readonly supportsMultipleAccounts: boolean,
5555
public readonly authorizationServers: ReadonlyArray<URI>,
56-
private readonly notificationService: INotificationService,
5756
onDidChangeSessionsEmitter: Emitter<AuthenticationSessionsChangeEvent>,
5857
) {
5958
super();
@@ -70,7 +69,6 @@ export class MainThreadAuthenticationProvider extends Disposable implements IAut
7069

7170
async removeSession(sessionId: string): Promise<void> {
7271
await this._proxy.$removeSession(this.id, sessionId);
73-
this.notificationService.info(nls.localize('signedOut', "Successfully signed out."));
7472
}
7573
}
7674

@@ -153,7 +151,7 @@ export class MainThreadAuthentication extends Disposable implements MainThreadAu
153151
const emitter = new Emitter<AuthenticationSessionsChangeEvent>();
154152
this._registrations.set(id, emitter);
155153
const supportedAuthorizationServerUris = supportedAuthorizationServer.map(i => URI.revive(i));
156-
const provider = new MainThreadAuthenticationProvider(this._proxy, id, label, supportsMultipleAccounts, supportedAuthorizationServerUris, this.notificationService, emitter);
154+
const provider = new MainThreadAuthenticationProvider(this._proxy, id, label, supportsMultipleAccounts, supportedAuthorizationServerUris, emitter);
157155
this.authenticationService.registerAuthenticationProvider(id, provider);
158156
}
159157

0 commit comments

Comments
 (0)