@@ -65,7 +65,7 @@ export class ProgressService2 implements IProgressService2 {
6565
6666 const promise = callback ( task [ 1 ] ) ;
6767
68- let delayHandle = setTimeout ( ( ) => {
68+ let delayHandle : any = setTimeout ( ( ) => {
6969 delayHandle = undefined ;
7070 this . _stack . unshift ( task ) ;
7171 this . _updateWindowProgress ( ) ;
@@ -131,7 +131,7 @@ export class ProgressService2 implements IProgressService2 {
131131 private _withNotificationProgress < P extends Promise < R > , R = any > ( options : IProgressOptions , callback : ( progress : IProgress < { message ?: string , increment ?: number } > ) => P , onDidCancel ?: ( ) => void ) : P {
132132 const toDispose : IDisposable [ ] = [ ] ;
133133
134- const createNotification = ( message : string , increment ?: number ) : INotificationHandle => {
134+ const createNotification = ( message : string | undefined , increment ?: number ) : INotificationHandle | undefined => {
135135 if ( ! message ) {
136136 return undefined ; // we need a message at least
137137 }
@@ -140,7 +140,7 @@ export class ProgressService2 implements IProgressService2 {
140140 if ( options . cancellable ) {
141141 const cancelAction = new class extends Action {
142142 constructor ( ) {
143- super ( 'progress.cancel' , localize ( 'cancel' , "Cancel" ) , null , true ) ;
143+ super ( 'progress.cancel' , localize ( 'cancel' , "Cancel" ) , undefined , true ) ;
144144 }
145145
146146 run ( ) : Promise < any > {
@@ -153,7 +153,7 @@ export class ProgressService2 implements IProgressService2 {
153153 } ;
154154 toDispose . push ( cancelAction ) ;
155155
156- actions . primary . push ( cancelAction ) ;
156+ actions . primary ! . push ( cancelAction ) ;
157157 }
158158
159159 const handle = this . _notificationService . notify ( {
@@ -181,7 +181,7 @@ export class ProgressService2 implements IProgressService2 {
181181 }
182182 } ;
183183
184- let handle : INotificationHandle ;
184+ let handle : INotificationHandle | undefined ;
185185 const updateNotification = ( message ?: string , increment ?: number ) : void => {
186186 if ( ! handle ) {
187187 handle = createNotification ( message , increment ) ;
@@ -235,7 +235,7 @@ export class ProgressService2 implements IProgressService2 {
235235
236236 // show activity bar
237237 let activityProgress : IDisposable ;
238- let delayHandle = setTimeout ( ( ) => {
238+ let delayHandle : any = setTimeout ( ( ) => {
239239 delayHandle = undefined ;
240240 const handle = this . _activityBar . showActivity (
241241 viewletId ,
0 commit comments