From 7dd39116e7fc52f3e6ee587b3d3e8fdddf0f294c Mon Sep 17 00:00:00 2001 From: Ramya Achutha Rao Date: Wed, 1 Nov 2017 16:47:26 -0700 Subject: [PATCH] Show the extension recommended in the pop up on top #37418 --- .../extensions/electron-browser/extensionTipsService.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/vs/workbench/parts/extensions/electron-browser/extensionTipsService.ts b/src/vs/workbench/parts/extensions/electron-browser/extensionTipsService.ts index 08b54360f97..275b756c232 100644 --- a/src/vs/workbench/parts/extensions/electron-browser/extensionTipsService.ts +++ b/src/vs/workbench/parts/extensions/electron-browser/extensionTipsService.ts @@ -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;