Repository navigation
Handle Alt+Click for terminal links. Fixes #30761 - #31263
Conversation
|
Christopher Leidigh (@cleidigh), thanks for your PR! By analyzing the history of the files in this pull request, we identified Daniel Imms (@Tyriar) to be a potential reviewer. |
Daniel Imms (Tyriar)
left a comment
There was a problem hiding this comment.
Looks great! Just a few minor comments 😃
|
|
||
| this._xterm.setHypertextLinkHandler(this._wrapLinkHandler(uri => { | ||
| this._handleHypertextLink(uri); | ||
| return; |
There was a problem hiding this comment.
Let's remove this return, plus the one in registerLocalLinkHandler. Not sure why I put them there 😅
There was a problem hiding this comment.
okay
anonymous function with void return, explicit return is redundant/unnecessary
| callback(true); | ||
| } | ||
|
|
||
| private _handleHypertextLink(url: string) { |
There was a problem hiding this comment.
Add : void return type
| private _handleHypertextLink(url: string) { | ||
| let uri = Uri.parse(url); | ||
| this._openerService.open(uri); | ||
| return; |
|
Daniel Imms (@Tyriar) |
Daniel Imms (@Tyriar)
Fixes #30761