debug: toolbar does not update if focused thread no longer exists · Issue #133623 · microsoft/vscode (original) (raw)

Steps to Reproduce:
Reported in the vscode-go repo: golang/vscode-go#1648

All threads are stopped expected toolbar to be:

Screen Shot 2021-09-22 at 12 39 23 PM

Instead got:
Screen Shot 2021-09-22 at 12 39 09 PM

This occurs when a stopped event is returned with no threadId AND the previously focused thread no longer exists, then the toolbar is left in the running state with the pause button enabled.

All of the active threads are paused:
Screen Shot 2021-09-22 at 12 25 40 PM

But the focused thread is still running, but actually does not exist anymore:
Screen Shot 2021-09-22 at 12 25 52 PM

The focused thread should be cleared if the thread no longer exists.