@@ -31,7 +31,7 @@ export class ProgressService2 implements IProgressService2 {
3131 @IStatusbarService private readonly _statusbarService : IStatusbarService ,
3232 ) { }
3333
34- withProgress < R = unknown > ( options : IProgressOptions , task : ( progress : IProgress < IProgressStep > ) => Promise < R > , onDidCancel ?: ( ) => void ) : Promise < R > {
34+ withProgress < R = unknown > ( options : IProgressOptions , task : ( progress : IProgress < IProgressStep > ) => Promise < R > , onDidCancel ?: ( ) => void ) : Promise < R > {
3535
3636 const { location } = options ;
3737 if ( typeof location === 'string' ) {
@@ -58,7 +58,7 @@ export class ProgressService2 implements IProgressService2 {
5858 }
5959 }
6060
61- private _withWindowProgress < R = unknown > ( options : IProgressOptions , callback : ( progress : IProgress < { message ?: string } > ) => Promise < R > ) : Promise < R > {
61+ private _withWindowProgress < R = unknown > ( options : IProgressOptions , callback : ( progress : IProgress < { message ?: string } > ) => Promise < R > ) : Promise < R > {
6262
6363 const task : [ IProgressOptions , Progress < IProgressStep > ] = [ options , new Progress < IProgressStep > ( ( ) => this . _updateWindowProgress ( ) ) ] ;
6464
@@ -126,7 +126,7 @@ export class ProgressService2 implements IProgressService2 {
126126 }
127127 }
128128
129- private _withNotificationProgress < P extends Promise < R > , R = unknown > ( options : IProgressOptions , callback : ( progress : IProgress < { message ?: string , increment ?: number } > ) => P , onDidCancel ?: ( ) => void ) : P {
129+ private _withNotificationProgress < P extends Promise < R > , R = unknown > ( options : IProgressOptions , callback : ( progress : IProgress < { message ?: string , increment ?: number } > ) => P , onDidCancel ?: ( ) => void ) : P {
130130 const toDispose : IDisposable [ ] = [ ] ;
131131
132132 const createNotification = ( message : string | undefined , increment ?: number ) : INotificationHandle | undefined => {
@@ -221,7 +221,7 @@ export class ProgressService2 implements IProgressService2 {
221221 return p ;
222222 }
223223
224- private _withViewletProgress < P extends Promise < R > , R = unknown > ( viewletId : string , task : ( progress : IProgress < { message ?: string } > ) => P ) : P {
224+ private _withViewletProgress < P extends Promise < R > , R = unknown > ( viewletId : string , task : ( progress : IProgress < { message ?: string } > ) => P ) : P {
225225
226226 const promise = task ( emptyProgress ) ;
227227
0 commit comments