55
66'use strict' ;
77
8- import { TPromise } from 'vs/base/common/winjs.base' ;
98import { Action } from 'vs/base/common/actions' ;
109import { IWindowService } from 'vs/platform/windows/common/windows' ;
1110import * as nls from 'vs/nls' ;
@@ -25,7 +24,6 @@ import { SyncActionDescriptor } from 'vs/platform/actions/common/actions';
2524import { forEach } from 'vs/base/common/collections' ;
2625import { mergeSort } from 'vs/base/common/arrays' ;
2726
28-
2927class Info {
3028
3129 static getTimerInfo ( metrics : IStartupMetrics , nodeModuleLoadTime ?: number ) : { [ name : string ] : Info } {
@@ -158,7 +156,7 @@ export class ShowStartupPerformance extends Action {
158156 super ( id , label ) ;
159157 }
160158
161- run ( ) : TPromise < boolean > {
159+ run ( ) : Promise < boolean > {
162160
163161 // Show dev tools
164162 this . windowService . openDevTools ( ) ;
@@ -217,7 +215,7 @@ export class ShowStartupPerformance extends Action {
217215 console . groupEnd ( ) ;
218216 } ) ;
219217
220- return TPromise . as ( true ) ;
218+ return Promise . resolve ( true ) ;
221219 }
222220}
223221
@@ -238,7 +236,7 @@ export class ReportPerformanceIssueAction extends Action {
238236 super ( id , label ) ;
239237 }
240238
241- run ( appendix ?: string ) : TPromise < boolean > {
239+ run ( appendix ?: string ) : Promise < boolean > {
242240 Promise . all ( [
243241 this . timerService . startupMetrics ,
244242 this . integrityService . isPure ( )
@@ -248,7 +246,7 @@ export class ReportPerformanceIssueAction extends Action {
248246 window . open ( issueUrl ) ;
249247 } ) ;
250248
251- return TPromise . wrap ( true ) ;
249+ return Promise . resolve ( true ) ;
252250 }
253251
254252 private generatePerformanceIssueUrl ( metrics : IStartupMetrics , baseUrl : string , name : string , version : string , _commit : string , _date : string , isPure : boolean , appendix ?: string ) : string {
0 commit comments