Skip to content

Commit a668b4f

Browse files
author
Benjamin Pasero
committed
notifications - make microsoft#50931 a bit better
1 parent 2b0b913 commit a668b4f

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/vs/workbench/browser/parts/notifications/notificationsToasts.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ export class NotificationsToasts extends Themable {
191191

192192
// Update when item height potentially changes due to label changes
193193
itemDisposeables.push(item.onDidLabelChange(e => {
194+
if (!item.expanded) {
195+
return; // dynamic height only applies to expanded notifications
196+
}
197+
194198
if (e.kind === NotificationViewItemLabelKind.ACTIONS || e.kind === NotificationViewItemLabelKind.MESSAGE) {
195199
notificationList.updateNotificationsList(0, 1, [item]);
196200
}

src/vs/workbench/browser/parts/notifications/notificationsViewer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,9 @@ export class NotificationTemplateRenderer {
350350
case NotificationViewItemLabelKind.PROGRESS:
351351
this.renderProgress(notification);
352352
break;
353+
case NotificationViewItemLabelKind.MESSAGE:
354+
this.renderMessage(notification);
355+
break;
353356
}
354357
}));
355358
}

0 commit comments

Comments
 (0)