diff --git a/src/vs/workbench/services/notification/browser/notificationList.ts b/src/vs/workbench/services/notification/browser/notificationList.ts index d8a3fe0123decbe9152babe92447dee832a1832f..73dc994d2612b65c5897a58be7b629289299c252 100644 --- a/src/vs/workbench/services/notification/browser/notificationList.ts +++ b/src/vs/workbench/services/notification/browser/notificationList.ts @@ -60,7 +60,7 @@ export class NotificationList extends Themable { WorkbenchList, this.listContainer, new NotificationsDelegate(), - [new NotificationRenderer()], + [this.instantiationService.createInstance(NotificationRenderer)], { ariaLabel: localize('notificationsList', "Notifications List") } as IListOptions ); diff --git a/src/vs/workbench/services/notification/browser/notificationViewer.ts b/src/vs/workbench/services/notification/browser/notificationViewer.ts index 571c6947f6129c78e8aba12e33cd3be17c12e652..662155ebd1d0d9da9bc7a83937eb3e6629016fdb 100644 --- a/src/vs/workbench/services/notification/browser/notificationViewer.ts +++ b/src/vs/workbench/services/notification/browser/notificationViewer.ts @@ -10,6 +10,9 @@ import { IDelegate, IRenderer } from 'vs/base/browser/ui/list/list'; import { INotificationViewItem, NotificationViewItem } from 'vs/workbench/services/notification/common/notificationsModel'; import { renderMarkdown } from 'vs/base/browser/htmlContentRenderer'; import { clearNode } from 'vs/base/browser/dom'; +import { IOpenerService } from 'vs/platform/opener/common/opener'; +import URI from 'vs/base/common/uri'; +import { onUnexpectedError } from 'vs/base/common/errors'; export class NotificationsDelegate implements IDelegate { @@ -42,6 +45,11 @@ export class NotificationRenderer implements IRenderer NotificationRenderer.MARKED_NOOP_TARGETS.forEach(fn => renderer[fn] = NotificationRenderer.MARKED_NOOP) + joinRendererConfiguration: renderer => NotificationRenderer.MARKED_NOOP_TARGETS.forEach(fn => renderer[fn] = NotificationRenderer.MARKED_NOOP), + actionCallback: (content: string) => this.openerService.open(URI.parse(content)).then(void 0, onUnexpectedError) })); }