Skip to content

Commit

Permalink
Fixes #53270
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Jun 29, 2018
1 parent cddd061 commit 4991227
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -426,12 +426,15 @@ export class ExtensionTipsService extends Disposable implements IExtensionTipsSe
}

getAllRecommendations(): TPromise<IExtensionRecommendation[]> {
if (!this.proactiveRecommendationsFetched) {
return TPromise.as([]);
}
return TPromise.join([
this.getWorkspaceRecommendations(),
TPromise.as(this.getFileBasedRecommendations()),
this.getOtherRecommendations(),
TPromise.as(this.getKeymapRecommendations())
]).then(result => flatten(result));
]).then(result => flatten(result).filter(e => this.isExtensionAllowedToBeRecommended(e.extensionId)));
}

private fetchFileBasedRecommendations() {
Expand Down

0 comments on commit 4991227

Please sign in to comment.