-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support reconnect in tasks #117408
Comments
Yes, this would be great. I thought @alexdima had done some work to make sure that task terminals were not restored for now though? Since we cannot restore the task now, we decided this was the best behavior for now. |
@alexr00 I think what we did was for restored remote terminals, while this issue might be about restoring terminals with local windows. |
Looks like the disabling in remote is here:
We don't have this for local atm, should we add it? Isn't it good that the task terminals still get restored, despite not being linked to the task system? |
I think having "orphaned" task terminals is not a good behavior, and it would be better if they simply didn't restore until we have a good story. For example, if a user has a task that runs automatically when a folder is opened and their terminal restored then they could get weird behavior because now they have the old orphaned task running and the new task running. |
👍 disabling in #117578 |
This would be really nice to have. Right now all I need to do to get back up and running after reloading the window is ctrl+shift+b. This isn't that big of a deal for the VS Code repo or other repos I work in as they're fairly small, but larger projects that don't have the daemon worker system it will mean no more rebuilding after reloads. |
Same here, would be great to have for a nice reload/restart experience. I. keep many local checkouts of VSCode to try out different things and switch branches and I often forget in which workspace I have background compile tasks running. |
We want to explore this to try to gauge how much effort it will take to do, reconnection reliability is the priority for June #151936 |
explored this on
|
@meganrogge I'm looking at your work so far now, but I've been thinking about your points/questions. Did you consider having For saving the tasks, I think you can use the tasks recently used key. |
Terminals now reconnect when reloading local or remote windows. If a task is running at the time this will still reconnect the terminal but not restore the task, for example the VS Code core watch task results in this:
cc @meganrogge
The text was updated successfully, but these errors were encountered: