Skip to content

Commit ade8144

Browse files
committed
1 parent bddfa3a commit ade8144

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ export class ExtensionRecommendationNotificationService implements IExtensionRec
327327
try {
328328
this.recommendationSources.push(source);
329329
const recommendationsNotification = new RecommendationsNotification(severity, message, choices, this.notificationService);
330+
Event.once(Event.filter(recommendationsNotification.onDidChangeVisibility, e => !e))(() => this.showNextNotification());
330331
if (this.visibleNotification) {
331332
const index = this.pendingNotificaitons.length;
332333
token.onCancellationRequested(() => this.pendingNotificaitons.splice(index, 1), disposables);
@@ -337,7 +338,6 @@ export class ExtensionRecommendationNotificationService implements IExtensionRec
337338
} else {
338339
this.visibleNotification = { recommendationsNotification, source, from: Date.now() };
339340
recommendationsNotification.show();
340-
Event.once(Event.filter(recommendationsNotification.onDidChangeVisibility, e => !e))(() => this.showNextNotification());
341341
}
342342
await raceCancellation(Event.toPromise(recommendationsNotification.onDidClose), token);
343343
return !recommendationsNotification.isCancelled();
@@ -355,6 +355,7 @@ export class ExtensionRecommendationNotificationService implements IExtensionRec
355355
.then(() => {
356356
this.unsetVisibileNotification();
357357
if (nextNotificaiton) {
358+
this.visibleNotification = { recommendationsNotification: nextNotificaiton.recommendationsNotification, source: nextNotificaiton.source, from: Date.now() };
358359
nextNotificaiton.recommendationsNotification.show();
359360
}
360361
});

0 commit comments

Comments
 (0)