Skip to content

Commit b2cd559

Browse files
committed
TS 3.4 formatting
1 parent 86fe4b3 commit b2cd559

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/vs/platform/instantiation/common/instantiation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export interface IInstantiationService {
9595
/**
9696
*
9797
*/
98-
invokeFunction<R, TS extends any[]=[]>(fn: (accessor: ServicesAccessor, ...args: TS) => R, ...args: TS): R;
98+
invokeFunction<R, TS extends any[] = []>(fn: (accessor: ServicesAccessor, ...args: TS) => R, ...args: TS): R;
9999

100100
/**
101101
* Creates a child of this service which inherts all current services

src/vs/platform/instantiation/common/instantiationService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class InstantiationService implements IInstantiationService {
3939
return new InstantiationService(services, this._strict, this);
4040
}
4141

42-
invokeFunction<R, TS extends any[]=[]>(fn: (accessor: ServicesAccessor, ...args: TS) => R, ...args: TS): R {
42+
invokeFunction<R, TS extends any[] = []>(fn: (accessor: ServicesAccessor, ...args: TS) => R, ...args: TS): R {
4343
let _trace = Trace.traceInvocation(fn);
4444
let _done = false;
4545
try {

src/vs/platform/progress/common/progress.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export interface IProgressService2 {
5252

5353
_serviceBrand: any;
5454

55-
withProgress<R=any>(options: IProgressOptions, task: (progress: IProgress<IProgressStep>) => Promise<R>, onDidCancel?: () => void): Promise<R>;
55+
withProgress<R = any>(options: IProgressOptions, task: (progress: IProgress<IProgressStep>) => Promise<R>, onDidCancel?: () => void): Promise<R>;
5656
}
5757

5858
export interface IProgressRunner {

src/vs/workbench/services/progress/browser/progressService2.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

src/vs/workbench/services/search/common/search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export interface ISearchResultProvider {
5353
clearCache(cacheKey: string): Promise<void>;
5454
}
5555

56-
export interface IFolderQuery<U extends UriComponents=URI> {
56+
export interface IFolderQuery<U extends UriComponents = URI> {
5757
folder: U;
5858
excludePattern?: glob.IExpression;
5959
includePattern?: glob.IExpression;

0 commit comments

Comments
 (0)