onDidEndTaskProcess not called when task terminal closed with vscode.TaskRevealKind.Silent #99828
Labels
bug
Issue identified by VS Code Team member as probable bug
insiders-released
Patch has been released in VS Code Insiders
tasks
Task system issues
verified
Verification succeeded
Milestone
Steps to Reproduce:
(Note the task runs
read
which will probably only work on Linux/MacOS)npm i
npm run compile
extension.ts
and place some breakpoints withinonDidStartTaskProcess
andonDidEndTaskProcess
Run Extension
launch configNow note the terminal for this task is created. Also note the icon in the statusbar shows the running task. If you close the terminal using the "Bin" button in the terminal panel, the
onDidEndTaskProcess
handler is not called, but the "running tasks" icon in the statusbar has disappeared and the task has definitely ended.Restart the extension by running "Run Extension". Open the task terminal. If you send a SIGINT signal (cmd +c) to the terminal, the
onDidEndTaskProcess
handler is called.Now change the task.presentationOptions.reveal to vscode.TaskRevealKind.Always, and clicking on the "Bin" button next to the terminal will cause
onDidEndTaskProcess
to be called.So it seems like an issue with
reveal: vscode.TaskRevealKind.Silent
.Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: