vscode: Default build task gets wrongly launched again, after reconnecting
- Hit
Ctrl Shift B
to start the default build
๐
This happened right after something strange, which might be the underlying cause. I had the build running already, the one with two terminals open. But I still pressed Ctrl Shift B
and noticed another two terminals showed up with the same build tasks! I closed them all. Then I pressed Ctrl Shift B
and ended up where the screenshot above shows.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 27 (27 by maintainers)
Commits related to this issue
- fix command not found part of #155163 — committed to microsoft/vscode by meganrogge 2 years ago
- fix command not found part of #155163 — committed to microsoft/vscode by meganrogge 2 years ago
- fix #155163 — committed to microsoft/vscode by meganrogge 2 years ago
- fix command not found warning (#155250) fix command not found part of #155163 — committed to microsoft/vscode by meganrogge 2 years ago
- fix command not found warning (#155250) fix command not found part of #155163 — committed to microsoft/vscode by meganrogge 2 years ago
Some notes from debugging:
_activeTasks
), if possible, it would be better to try the reconnect in the same place that we currently create a terminal. This would hook up all the needed state again and re-attach problem matchers.Iโve made an example PR here that starts to address the above points. Note that this is relatively untested, I just checked whether it fixes the problem described in this issue. https://github.com/microsoft/vscode/pull/156283
Other notes:
task.quickOpen.history
to entirely disable recent tasks. Instead, you will probably need a separate LRU that functions exactly like_recentlyUsedTasks
but is only used for reconnection.๐I will take some time tomorrow to dig into it.
might still be the same root cause, but iโll try to investigate for a bit