-
Notifications
You must be signed in to change notification settings - Fork 521
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
suggestion: option to reuse terminals #251
Comments
Might check docker-explorer as they reuse terminal sessions in that extension. It seems like they pick up what the terminal is named and simply reference that to find the right terminal to use...but I don't claim to know how extensions are written 😀 |
Is this a dupe of #74 ? |
Consider a flag as to whether or not to show a new terminal. But it might depend on the command, e.g.: Run Interactive Might need more thinking. |
Or experimenting |
Resolved by #1245 |
@bwateratmsft are you sure you closed the right issue here? This issue covers several features as mentioned above in Stephen's comment including compose, run, push image, pull image, view logs, etc. Basically anything that uses this |
Sorry, I was thinking about build which is resolved. But the rest would not be. |
Alex's suggestion was to create a Task object dynamically, and then execute it. This would result in terminals being re-used (most of the time), but for things like run-interactive, where a task stays running, the Task would automatically open a new terminal. Which is awesome! |
There are some major challenges to this approach with regard to shell quoting. Most of the commands work just fine, but attach is broken on PowerShell. The default command is I think it's safe to change the default value for |
Blocked on #1980. |
This has been fixed in Docker extension version 1.5.0. |
There is no API to let me see if a terminal is in use, so whenever a command is run we spin up a new terminal. This leads to a bunch of unused terminals to clean up.
Suggest to investigate an option that reuses the same terminal, commands are effectively queued up.
The text was updated successfully, but these errors were encountered: