This repo outlines an issue with VS Code, TerminalLinkProvider and Tasks that reuse a terminal. To reproduce:
- clone this repo
- Debug the extension
- Add the below task to the folder you are debugging in
{
"version": "2.0.0",
"tasks": [
{
"command": "node -e \"console.log('link')\"",
"label": "Test",
"type": "shell",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
- Open command palette and
Tasks: Run Build Task
- Click
link
in the terminal, a notification shows - Open command palette and
Tasks: Run Build Task
(make sure to leave the terminal open) - Click
link
in the terminal, no notification showslink
is identified and underlined correctly, buthandleTerminalLink
is just never called