mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-21 03:36:14 +01:00
avoid async and winjs-promise, #53442
This commit is contained in:
@@ -42,8 +42,8 @@ class StartupTimings implements IWorkbenchContribution {
|
||||
this._reportStandardStartupTimes().then(undefined, onUnexpectedError);
|
||||
}
|
||||
|
||||
private async _reportVariedStartupTimes(): TPromise<void> {
|
||||
await TPromise.join([
|
||||
private async _reportVariedStartupTimes(): Promise<void> {
|
||||
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<void> {
|
||||
private async _reportStandardStartupTimes(): Promise<void> {
|
||||
// check for standard startup:
|
||||
// * new window (no reload)
|
||||
// * just one window
|
||||
|
||||
Reference in New Issue
Block a user