mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-02 23:05:15 +01:00
Show the extension recommended in the pop up on top #37418
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user