Skip to content

Commit

Permalink
Support command links in notifications (fixes #46571)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Apr 12, 2019
1 parent 116434f commit 8c0e1b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/common/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ export class NotificationViewItem extends Disposable implements INotificationVie
private static MAX_MESSAGE_LENGTH = 1000;

// Example link: "Some message with [link text](http://link.href)."
// RegEx: [, anything not ], ], (, http:|https:, //, no whitespace)
private static LINK_REGEX = /\[([^\]]+)\]\((https?:\/\/[^\)\s]+)\)/gi;
// RegEx: [, anything not ], ], (, http://|https://|command:, no whitespace)
private static LINK_REGEX = /\[([^\]]+)\]\(((?:https?:\/\/|command:)[^\)\s]+)\)/gi;

private _expanded: boolean;

Expand Down

0 comments on commit 8c0e1b4

Please sign in to comment.