Open v-ruizh opened 2 years ago
@v-ruizh Thanks for finding this! I was able to repro the error, while not on every try, enough to have an idea of what might be going on. I think, as Tye is shutting down, it's generating status events that show at least one process still running, which then get picked up by the watch task as processes that need auto-reattaching.
We don't have great hooks in VS Code to be able to tell when the user is "done" debugging (so as to stop the watch task). However, if the user specifically stops the application from the tree view, that's probably a place where we can definitively say that we should stop any existing watch task associated with that application.
OS: Win10 Build Version: 20220211.2 Tye Version: 0.11.0-alpha.22111.1
Repro Steps:
Expect: There is no error when shutting down the tye application.
Actual: An error occurs when shutting down the tye application. (It will start debugging when shutting down the tye application.)
More Info: This issue doesn't reproduce on Mac and Linux.