From 2fa8021810dffb30f46719ddcce82e8041cd4a8d Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Mon, 2 Jul 2018 14:46:05 +0200 Subject: [PATCH] avoid async and winjs-promise, #53442 --- .../parts/performance/electron-browser/startupTimings.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/parts/performance/electron-browser/startupTimings.ts b/src/vs/workbench/parts/performance/electron-browser/startupTimings.ts index 3f9a70df2fd..047c038d75b 100644 --- a/src/vs/workbench/parts/performance/electron-browser/startupTimings.ts +++ b/src/vs/workbench/parts/performance/electron-browser/startupTimings.ts @@ -42,8 +42,8 @@ class StartupTimings implements IWorkbenchContribution { this._reportStandardStartupTimes().then(undefined, onUnexpectedError); } - private async _reportVariedStartupTimes(): TPromise { - await TPromise.join([ + private async _reportVariedStartupTimes(): Promise { + await Promise.all([ this._extensionService.whenInstalledExtensionsRegistered(), this._lifecycleService.when(LifecyclePhase.Eventually) ]); @@ -57,7 +57,7 @@ class StartupTimings implements IWorkbenchContribution { this._telemetryService.publicLog('startupTimeVaried', this._timerService.startupMetrics); } - private async _reportStandardStartupTimes(): TPromise { + private async _reportStandardStartupTimes(): Promise { // check for standard startup: // * new window (no reload) // * just one window