mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-06 09:35:41 -05:00
More dangling promise cleanup (#8518)
* More dangling promise cleanup * return void * Function to async * Fix a couple missed promises
This commit is contained in:
@@ -22,6 +22,7 @@ import { IOpenerService } from 'vs/platform/opener/common/opener';
|
||||
import { URI } from 'vs/base/common/uri';
|
||||
import { firstIndex } from 'vs/base/common/arrays';
|
||||
import { values } from 'vs/base/common/collections';
|
||||
import { onUnexpectedError } from 'vs/base/common/errors';
|
||||
|
||||
export class AccountManagementService implements IAccountManagementService {
|
||||
// CONSTANTS ///////////////////////////////////////////////////////////
|
||||
@@ -314,8 +315,8 @@ export class AccountManagementService implements IAccountManagementService {
|
||||
* Copy the user code to the clipboard and open a browser to the verification URI
|
||||
*/
|
||||
public copyUserCodeAndOpenBrowser(userCode: string, uri: string): void {
|
||||
this._clipboardService.writeText(userCode);
|
||||
this._openerService.open(URI.parse(uri));
|
||||
this._clipboardService.writeText(userCode).catch(err => onUnexpectedError(err));
|
||||
this._openerService.open(URI.parse(uri)).catch(err => onUnexpectedError(err));
|
||||
}
|
||||
|
||||
// SERVICE MANAGEMENT METHODS //////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user