File tree Expand file tree Collapse file tree
src/vs/workbench/services/timer/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { createDecorator } from 'vs/platform/instantiation/common/instantiation'
88import { IWorkspaceContextService , WorkbenchState } from 'vs/platform/workspace/common/workspace' ;
99import { IExtensionService } from 'vs/workbench/services/extensions/common/extensions' ;
1010import { IUpdateService } from 'vs/platform/update/common/update' ;
11- import { ILifecycleService } from 'vs/platform/lifecycle/common/lifecycle' ;
11+ import { ILifecycleService , LifecyclePhase } from 'vs/platform/lifecycle/common/lifecycle' ;
1212import { IViewletService } from 'vs/workbench/services/viewlet/browser/viewlet' ;
1313import { IPanelService } from 'vs/workbench/services/panel/common/panelService' ;
1414import { IEditorService } from 'vs/workbench/services/editor/common/editorService' ;
@@ -320,7 +320,10 @@ export abstract class AbstractTimerService implements ITimerService {
320320 @IAccessibilityService private readonly _accessibilityService : IAccessibilityService ,
321321 @ITelemetryService private readonly _telemetryService : ITelemetryService ,
322322 ) {
323- this . _startupMetrics = this . _extensionService . whenInstalledExtensionsRegistered ( )
323+ this . _startupMetrics = Promise . all ( [
324+ this . _extensionService . whenInstalledExtensionsRegistered ( ) ,
325+ _lifecycleService . when ( LifecyclePhase . Restored )
326+ ] )
324327 . then ( ( ) => this . _computeStartupMetrics ( ) )
325328 . then ( metrics => {
326329 this . _reportStartupTimes ( metrics ) ;
You can’t perform that action at this time.
0 commit comments