diff --git a/src/vs/workbench/api/browser/mainThreadAuthentication.ts b/src/vs/workbench/api/browser/mainThreadAuthentication.ts index a88a5f21d57..89f8aec33e8 100644 --- a/src/vs/workbench/api/browser/mainThreadAuthentication.ts +++ b/src/vs/workbench/api/browser/mainThreadAuthentication.ts @@ -74,14 +74,20 @@ export class MainThreadAuthenticationProvider extends Disposable { async removeAccountSessions(accountName: string, sessions: modes.AuthenticationSession[]): Promise { const accountUsages = readAccountUsages(this.storageService, this.id, accountName); - const result = await this.dialogService.confirm({ - title: nls.localize('signOutConfirm', "Sign out of {0}", accountName), - message: accountUsages.length - ? nls.localize('signOutMessagve', "The account {0} has been used by: \n\n{1}\n\n Sign out of these features?", accountName, accountUsages.map(usage => usage.extensionName).join('\n')) - : nls.localize('signOutMessageSimple', "Sign out of {0}?", accountName) - }); + const result = await this.dialogService.show( + Severity.Info, + accountUsages.length + ? nls.localize('signOutMessagve', "The account '{0}' has been used by: \n\n{1}\n\n Sign out from these extensions?", accountName, accountUsages.map(usage => usage.extensionName).join('\n')) + : nls.localize('signOutMessageSimple', "Sign out of '{0}'?", accountName), + [ + nls.localize('signOut', "Sign out"), + nls.localize('cancel', "Cancel") + ], + { + cancelId: 1 + }); - if (result.confirmed) { + if (result.choice === 0) { const removeSessionPromises = sessions.map(session => this.removeSession(session.id)); await Promise.all(removeSessionPromises); removeAccountUsage(this.storageService, this.id, accountName);