Skip to content

Commit

Permalink
Remove unused method getAllRecommendations()
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Nov 16, 2018
1 parent f8a46bc commit cb1c3ed
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,6 @@ export interface IExtensionTipsService {
getOtherRecommendations(): Promise<IExtensionRecommendation[]>;
getWorkspaceRecommendations(): Promise<IExtensionRecommendation[]>;
getKeymapRecommendations(): IExtensionRecommendation[];
getAllRecommendations(): Promise<IExtensionRecommendation[]>;
getKeywordsForExtension(extension: string): string[];
toggleIgnoredRecommendation(extensionId: string, shouldIgnore: boolean): void;
getAllIgnoredRecommendations(): { global: string[], workspace: string[] };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,18 +421,6 @@ export class ExtensionTipsService extends Disposable implements IExtensionTipsSe
.map(extensionId => (<IExtensionRecommendation>{ extensionId, sources: ['application'] }));
}

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

private fetchFileBasedRecommendations() {
const extensionTips = product.extensionTips;
if (!extensionTips) {
Expand Down

0 comments on commit cb1c3ed

Please sign in to comment.