Skip to content

Commit

Permalink
debt - remove one Promise.join overload, #53526
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Jul 4, 2018
1 parent 3c5beb9 commit e0a5cf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/vs/base/common/winjs.base.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export declare class Promise<T = any, TProgress = any> {

public static join<T1, T2>(promises: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
public static join<T>(promises: (T | PromiseLike<T>)[]): Promise<T[]>;
public static join<T>(promises: { [n: string]: T | PromiseLike<T> }): Promise<{ [n: string]: T }>;

public static any<T>(promises: (T | PromiseLike<T>)[]): Promise<{ key: string; value: Promise<T>; }>;

Expand Down
4 changes: 2 additions & 2 deletions src/vs/workbench/services/configuration/node/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export class FileServiceBasedFolderConfiguration extends AbstractFolderConfigura
}
}).then(null, err => [] /* never fail this call */);

return bulkContentFetchromise.then(() => TPromise.join(workspaceFilePathToConfiguration).then(result => collections.values(result)));
return bulkContentFetchromise.then(() => TPromise.join(collections.values(workspaceFilePathToConfiguration)));
}

private handleWorkspaceFileEvents(event: FileChangesEvent): void {
Expand Down Expand Up @@ -489,4 +489,4 @@ export class FolderConfiguration extends Disposable implements IFolderConfigurat
}
return TPromise.as(null);
}
}
}

0 comments on commit e0a5cf1

Please sign in to comment.