Show the extension recommended in the pop up on top #37418

This commit is contained in:
Ramya Achutha Rao
2017-11-01 16:47:26 -07:00
parent a661405135
commit 7dd39116e7
@@ -134,6 +134,14 @@ export class ExtensionTipsService extends Disposable implements IExtensionTipsSe
getFileBasedRecommendations(): string[] {
const fileBased = Object.keys(this._fileBasedRecommendations)
.sort((a, b) => {
if (this._fileBasedRecommendations[a] === this._fileBasedRecommendations[b]) {
if (product.extensionImportantTips[a]) {
return -1;
}
if (product.extensionImportantTips[b]) {
return 1;
}
}
return this._fileBasedRecommendations[a] > this._fileBasedRecommendations[b] ? -1 : 1;
});
return fileBased;