Skip to content

Commit

Permalink
Merge pull request #97781 from microsoft/sandy081/fix/97484
Browse files Browse the repository at this point in the history
fix 97484
  • Loading branch information
sandy081 authored May 14, 2020
2 parents 4f32ba5 + b7027cf commit 978b857
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,13 @@ export class ExtensionTipsService implements IExtensionTipsService {
});
}
});
const remotes = getDomainsOfRemotes(content.value.toString(), keys(recommendationByRemote));
remotes.forEach(remote => result.push(recommendationByRemote.get(remote)!));
const domains = getDomainsOfRemotes(content.value.toString(), keys(recommendationByRemote));
for (const domain of domains) {
const remote = recommendationByRemote.get(domain);
if (remote) {
result.push(remote);
}
}
} catch (error) { /* Ignore */ }
}
return result;
Expand Down

0 comments on commit 978b857

Please sign in to comment.